/* ============================================================
   SAMOAN FOOTBALL — samoanfootball.com
   Dark tatau aesthetic: near-black ground, teal glow,
   condensed display type, Samoan pattern accents.
   ============================================================ */

:root {
  --ink: #0a0a0e;            /* page ground */
  --ink-2: #101018;          /* raised surfaces */
  --card: #14141d;           /* card ground */
  --card-edge: #23232f;      /* card border */
  --white: #f5f4f0;
  --muted: #a8a8b4;
  --faint: #6d6d7a;
  --teal: #2fe6a8;           /* the poster glow */
  --teal-deep: #0d8f66;
  --gold: #e8c56a;           /* malu/ula accent for HS */
  --red: #e05a4e;            /* legends accent */
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1c1c26;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { display: block; width: 34px; height: 34px; }
.nav-wordmark {
  font-family: var(--display); font-size: 18px; letter-spacing: 0.06em;
}
.nav-wordmark em { font-style: normal; color: var(--teal); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--teal); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(90px, 14vh, 170px) 24px clamp(70px, 10vh, 130px);
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #14202066, transparent 70%),
    var(--ink);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero-glow-a {
  width: 480px; height: 480px; left: -160px; top: 30%;
  background: radial-gradient(circle, #2fe6a833, transparent 65%);
}
.hero-glow-b {
  width: 380px; height: 380px; right: -120px; top: 5%;
  background: radial-gradient(circle, #2fe6a81f, transparent 65%);
}
.hero-tatau {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f5f4f0' stroke-width='2'%3E%3Cpath d='M0 30 l15 -15 l15 15 l15 -15 l15 15 l15 -15 l15 15 l15 -15 l15 15'/%3E%3Cpath d='M0 90 l15 -15 l15 15 l15 -15 l15 15 l15 -15 l15 15 l15 -15 l15 15'/%3E%3Cpath d='M7.5 60 l7.5 -7.5 l7.5 7.5 M37.5 60 l7.5 -7.5 l7.5 7.5 M67.5 60 l7.5 -7.5 l7.5 7.5 M97.5 60 l7.5 -7.5 l7.5 7.5' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.hero-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 148px);
  line-height: 0.92; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 55%, #b8b8c4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 26px; font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500; color: var(--white); letter-spacing: 0.01em;
}
.hero-body {
  margin: 18px auto 0; max-width: 620px;
  color: var(--muted); font-size: 16px;
}
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; transition: all .18s ease;
}
.btn-primary { background: var(--teal); color: #06231a; }
.btn-primary:hover { background: #4df0ba; transform: translateY(-1px); }
.btn-ghost { border: 1px solid #33333f; color: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ============ STAT BAND ============ */
.statband {
  border-top: 1px solid #1c1c26; border-bottom: 1px solid #1c1c26;
  background: var(--ink-2); padding: 54px 24px;
}
.statband-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
.stat-num {
  font-family: var(--display); font-size: clamp(38px, 5vw, 56px);
  color: var(--teal); line-height: 1;
}
.stat-label {
  margin-top: 10px; font-size: 13px; color: var(--muted);
  max-width: 240px; margin-left: auto; margin-right: auto;
}
.statband-note {
  max-width: 760px; margin: 40px auto 0; text-align: center;
  color: var(--faint); font-size: 14px; font-style: italic;
}

/* ============ TIER SECTIONS ============ */
.tier { max-width: 1160px; margin: 0 auto; padding: clamp(70px, 9vh, 110px) 24px 30px; }
.tier-head { margin-bottom: 44px; }
.tier-overline {
  font-size: 13px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
#college .tier-overline { color: #8786ee; }
#highschool .tier-overline { color: var(--gold); }
.tier-title {
  font-family: var(--display); font-size: clamp(44px, 7vw, 76px);
  line-height: 1; letter-spacing: 0.01em;
}
.tier-sub { margin-top: 14px; color: var(--muted); max-width: 560px; }

/* ============ PLAYER CARDS ============ */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 24px 24px 22px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: #3a3a4a; }
.card::before {
  /* tatau corner motif */
  content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 90px;
  opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23f5f4f0' stroke-width='3'%3E%3Cpath d='M90 10 l-12 12 l-12 -12 l-12 12 l-12 -12'/%3E%3Cpath d='M90 34 l-12 12 l-12 -12 l-12 12'/%3E%3Cpath d='M90 58 l-12 12 l-12 -12'/%3E%3C/g%3E%3C/svg%3E");
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-pos {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.1em;
  color: var(--teal);
}
#college-grid .card-pos { color: #8786ee; }
#hs-grid .card-pos { color: var(--gold); }
.card-num { font-family: var(--display); font-size: 15px; color: var(--faint); }
.card-name {
  font-family: var(--display); font-size: 26px; line-height: 1.1;
  margin-top: 8px; letter-spacing: 0.015em;
}
.card-team { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--white); }
.card-meta { margin-top: 2px; font-size: 13px; color: var(--faint); }
.card-blurb { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.card-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: #1d2b26; color: var(--teal); border: 1px solid #234438;
}
#college-grid .tag { background: #201f33; color: #a5a4f5; border-color: #34335c; }
#hs-grid .tag { background: #2b2517; color: var(--gold); border-color: #4a3f24; }
.tag.heritage { background: #1a1a24; color: var(--muted); border-color: #2a2a38; }

/* ============ TATAU DIVIDER ============ */
.tatau-divider {
  height: 26px; margin: 40px auto 0; max-width: 1160px; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Cg fill='none' stroke='%232fe6a8' stroke-width='2.5'%3E%3Cpath d='M0 20 l13 -13 l13 13 l13 -13 l13 13'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}

/* ============ LEGENDS ============ */
.legends { max-width: 1160px; margin: 0 auto; padding: clamp(70px, 9vh, 110px) 24px; }
.legends .tier-overline { color: var(--red); }
.legends-row {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.legend-card {
  background: linear-gradient(180deg, #16121a, #121016);
  border: 1px solid #262030; border-radius: var(--radius); padding: 22px;
}
.legend-name { font-family: var(--display); font-size: 21px; letter-spacing: 0.02em; }
.legend-line { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.legend-tag {
  display: inline-block; margin-bottom: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); border: 1px solid #4a2a2a; border-radius: 999px; padding: 4px 10px;
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid #1c1c26; background: #08080b; padding: 60px 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.footer-mark { font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; }
.footer-mark em { font-style: normal; color: var(--teal); }
.footer-line { margin-top: 12px; color: var(--muted); font-size: 14px; }
.footer-fine { margin-top: 18px; color: #55555f; font-size: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .nav-wordmark { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-links a:nth-child(4) { display: none; }
}

/* ============ CARD LINKS ============ */
.card-link { display: block; text-decoration: none; color: inherit; }
.card-cta {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  transition: color .18s ease;
}
.card-link:hover .card-cta { color: var(--teal); }

/* ============ NEWSWIRE ============ */
.wire-section { max-width: 1160px; margin: 0 auto; padding: clamp(60px, 8vh, 90px) 24px 20px; }
.wire-list { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.wire-item {
  background: var(--card); border: 1px solid var(--card-edge);
  border-left: 3px solid var(--teal);
  border-radius: 14px; padding: 18px 22px;
}
.wire-item.wire-college { border-left-color: #8786ee; }
.wire-item.wire-hs { border-left-color: var(--gold); }
.wire-item.wire-culture { border-left-color: var(--red); }
.wire-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wire-level {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.wire-college .wire-level { color: #a5a4f5; }
.wire-hs .wire-level { color: var(--gold); }
.wire-culture .wire-level { color: var(--red); }
.wire-date, .wire-source { font-size: 12px; color: var(--faint); }
.wire-source::before { content: "via "; }
.wire-headline { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.wire-summary { margin-top: 6px; font-size: 14px; color: var(--muted); }
.wire-players { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.wire-player {
  font-size: 12px; font-weight: 600; text-decoration: none;
  padding: 4px 11px; border-radius: 999px;
  background: #1a1a24; color: var(--white); border: 1px solid #2a2a38;
  transition: border-color .18s ease, color .18s ease;
}
a.wire-player:hover { border-color: var(--teal); color: var(--teal); }
.wire-player-plain { color: var(--muted); }
.wire-empty { color: var(--faint); font-style: italic; padding: 30px 0; }
.wire-more { margin-top: 26px; text-align: center; }

/* ============ FILTERS ============ */
.wire-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.filter-btn {
  font-family: var(--body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid #2a2a38;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: #06231a; }

/* ============ TRENDS ============ */
.trends-grid {
  display: grid; gap: 18px; margin-top: 34px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.trend-card {
  background: linear-gradient(180deg, #12121c, #0e0e15);
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 24px;
}
.trend-head { display: flex; align-items: center; gap: 10px; }
.trend-arrow { font-size: 13px; }
.trend-arrow.up { color: var(--teal); }
.trend-arrow.watch { color: var(--gold); }
.trend-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.trend-title { margin-top: 12px; font-family: var(--display); font-size: 23px; letter-spacing: 0.02em; }
.trend-body { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ SUBPAGE HERO ============ */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(70px, 10vh, 110px) 24px clamp(40px, 6vh, 60px);
}
.page-hero .hero-tatau { opacity: .04; }
.page-hero-title {
  position: relative; font-family: var(--display);
  font-size: clamp(46px, 9vw, 92px); line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 55%, #b8b8c4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero-sub { position: relative; margin-top: 16px; color: var(--muted); max-width: 620px; margin-left: auto; margin-right: auto; }
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 20px 24px 90px; }

/* ============ SCOUTING BOARD ============ */
.board { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.board-row {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 14px; padding: 14px 20px;
  transition: border-color .18s ease, transform .18s ease;
}
.board-row:hover { border-color: var(--gold); transform: translateX(4px); }
.board-rank {
  font-family: var(--display); font-size: 22px; color: var(--gold);
  min-width: 34px; text-align: center;
}
.board-mid { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-name { font-family: var(--display); font-size: 18px; letter-spacing: 0.02em; }
.board-school { font-size: 12px; color: var(--faint); }
.board-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.board-pos {
  font-family: var(--display); font-size: 14px; color: var(--muted);
  min-width: 34px; text-align: right;
}
.board-rating {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: #2b2517; color: var(--gold); border: 1px solid #4a3f24;
}
@media (max-width: 560px) {
  .board-rating { display: none; }
  .board-row { gap: 12px; padding: 12px 14px; }
}

/* ============ PIPELINE ============ */
.pipeline-list {
  display: grid; gap: 18px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pipeline-item {
  background: var(--ink-2); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 22px;
}
.pipeline-title { font-family: var(--display); font-size: 18px; letter-spacing: 0.03em; color: var(--gold); }
.pipeline-body { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ PLAYER PAGE ============ */
.player-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(80px, 12vh, 130px) 24px clamp(50px, 7vh, 70px);
  border-bottom: 1px solid #1c1c26;
  background: radial-gradient(ellipse 80% 70% at 50% -20%, #17303044, transparent 70%), var(--ink);
}
.player-hero.player-college { background: radial-gradient(ellipse 80% 70% at 50% -20%, #201f4455, transparent 70%), var(--ink); }
.player-hero.player-highschool, .player-hero.player-youth { background: radial-gradient(ellipse 80% 70% at 50% -20%, #2b251766, transparent 70%), var(--ink); }
.player-level {
  font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal);
}
.player-college .player-level { color: #a5a4f5; }
.player-highschool .player-level, .player-youth .player-level { color: var(--gold); }
.player-name {
  margin-top: 14px; font-family: var(--display);
  font-size: clamp(44px, 9vw, 96px); line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 55%, #b8b8c4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.player-line { margin-top: 18px; font-size: 18px; font-weight: 600; }
.player-meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
.player-heritage { margin-top: 14px; display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid #2a2a38; border-radius: 999px; padding: 6px 16px; }
.player-body { max-width: 860px; margin: 0 auto; padding: 30px 24px 90px; }
.player-block { margin-top: 44px; }
.player-block-title {
  font-family: var(--display); font-size: 22px; letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 16px;
}
.player-blurb { font-size: 17px; line-height: 1.7; color: var(--muted); }
.player-block .wire-item { margin-bottom: 12px; }
.crumb {
  position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 18px 24px 0;
}
.crumb a { font-size: 13px; color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--teal); }

/* ============ PORTRAITS ============ */
.portrait {
  position: relative; display: block; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: #191926;
}
.portrait svg { display: block; width: 100%; height: 100%; }
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.portrait-card { width: 64px; height: 64px; margin: 10px 0 4px; }
.portrait-hero {
  width: 128px; height: 128px; margin: 0 auto 22px;
  box-shadow: 0 0 0 3px #1c1c26, 0 0 44px #2fe6a822;
}
.player-college .portrait-hero { box-shadow: 0 0 0 3px #1c1c26, 0 0 44px #8786ee22; }
.player-highschool .portrait-hero, .player-youth .portrait-hero { box-shadow: 0 0 0 3px #1c1c26, 0 0 44px #e8c56a22; }
.player-blurb + .player-blurb { margin-top: 16px; }

/* ============ WATCH GUIDE ============ */
.watch-grid {
  display: grid; gap: 16px; margin-top: 34px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.watch-card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-top: 3px solid var(--teal); border-radius: 14px; padding: 18px 20px;
}
.watch-card.watch-college { border-top-color: #8786ee; }
.watch-card.watch-hs { border-top-color: var(--gold); }
.watch-card .wire-level { color: var(--teal); }
.watch-card.watch-college .wire-level { color: #a5a4f5; }
.watch-card.watch-hs .wire-level { color: var(--gold); }
.watch-matchup { margin-top: 8px; font-family: var(--display); font-size: 20px; letter-spacing: 0.02em; line-height: 1.2; }
.watch-tv { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ============ DRAFT CHART ============ */
.chart-wrap {
  position: relative; margin-top: 34px;
  background: var(--ink-2); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 20px 16px 10px;
}
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-hit { cursor: pointer; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: #1d1d2a; border: 1px solid #33333f; border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  box-shadow: 0 8px 24px #00000066; max-width: 260px;
}
.chart-tip strong { color: var(--white); }
.chart-table { margin-top: 14px; }
.chart-table summary {
  cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
}
.chart-table summary:hover { color: var(--teal); }
.chart-table table {
  margin-top: 12px; width: 100%; border-collapse: collapse; font-size: 13px;
}
.chart-table th, .chart-table td {
  text-align: left; padding: 8px 12px; border-bottom: 1px solid #1c1c26; color: var(--muted);
}
.chart-table th { color: var(--faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.chart-table td:first-child { color: var(--white); font-weight: 600; }

/* ============ SEARCH ============ */
.search-bar { max-width: 1160px; margin: 30px auto 0; padding: 0 24px; }
.search-inner { display: flex; align-items: center; gap: 16px; }
#player-search {
  flex: 1; max-width: 560px;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 999px;
  padding: 14px 24px; font-family: var(--body); font-size: 15px; color: var(--white);
  outline: none; transition: border-color .18s ease;
}
#player-search::placeholder { color: var(--faint); }
#player-search:focus { border-color: var(--teal); }
.search-count { font-size: 13px; color: var(--faint); white-space: nowrap; }

/* ============ NAMES TO LEARN ============ */
.learn-strip {
  margin-top: 26px; background: linear-gradient(180deg, #14141f, #101018);
  border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 24px 26px;
}
.learn-title { font-family: var(--display); font-size: 24px; letter-spacing: 0.03em; }
.learn-sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.learn-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.learn-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: #1a1a26; border: 1px solid #2a2a3a; border-radius: 12px;
  padding: 10px 16px;
}
.learn-chip strong { font-size: 14px; color: var(--white); }
.learn-meta { font-size: 11px; color: var(--faint); }

/* ============ PIPELINE FLOW ============ */
.flow {
  display: flex; align-items: stretch; gap: 0; margin: 34px 0 10px;
  flex-wrap: nowrap;
}
.flow-node {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 16px; padding: 18px 18px 16px; min-width: 0;
}
.flow-node-end { border-color: #3d3520; background: linear-gradient(180deg, #1a1710, #14120c); }
.flow-stage {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.flow-name { font-family: var(--display); font-size: 17px; letter-spacing: 0.02em; line-height: 1.15; }
.flow-detail { font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.flow-arrow {
  align-self: center; flex-shrink: 0; width: 26px; height: 14px; position: relative;
}
.flow-arrow::before {
  content: ""; position: absolute; left: 4px; right: 10px; top: 6px; height: 2px;
  background: #4a3f24;
}
.flow-arrow::after {
  content: ""; position: absolute; right: 4px; top: 2px;
  border-left: 7px solid var(--gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@media (max-width: 900px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); margin: 2px 0; }
}
.legend-heritage { margin-top: 10px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* ============ SCOUTING REPORT ============ */
.scout-card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 6px 22px;
}
.scout-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid #1c1c26;
}
.scout-row:last-child { border-bottom: none; }
.scout-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold); padding-top: 3px;
}
.scout-value { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 620px) {
  .scout-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============ PHOTO CREDIT ============ */
.photo-credit { margin: -12px 0 16px; font-size: 10.5px; color: #55555f; letter-spacing: 0.02em; }
.photo-credit a { color: #6d6d7a; text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--teal); }
/* Bias portrait crop upward — football photos put faces near the top */
.portrait img { object-position: 50% 18%; }

/* ============ LEGEND PORTRAITS ============ */
.legend-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.portrait-legend { width: 54px; height: 54px; flex-shrink: 0; }
.legend-head .legend-tag { margin-bottom: 0; }
.photo-credit-inline { margin: 8px 0 0; }

/* ============ TEAMS INDEX ============ */
.teams-section { margin-top: 46px; }
.teams-heading {
  font-family: var(--display); font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.02em; margin-bottom: 18px;
}
.teams-heading.teams-nfl { color: var(--teal); }
.teams-heading.teams-college { color: #a5a4f5; }
.teams-heading.teams-highschool, .teams-heading.teams-youth { color: var(--gold); }
.teams-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.team-chip {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 1px solid var(--card-edge);
  border-left: 3px solid var(--teal);
  border-radius: 12px; padding: 14px 18px;
  transition: border-color .18s ease, transform .18s ease;
}
.team-chip.team-college { border-left-color: #8786ee; }
.team-chip.team-highschool, .team-chip.team-youth { border-left-color: var(--gold); }
.team-chip:hover { transform: translateX(3px); border-color: #3a3a4a; }
.team-chip.team-nfl:hover { border-left-color: #4df0ba; }
.team-chip-name { font-family: var(--display); font-size: 17px; letter-spacing: 0.02em; line-height: 1.15; }
.team-chip-count { font-size: 11.5px; color: var(--faint); }
.scout-value .scout-para + .scout-para,
.scout-value .scout-bullet + .scout-bullet,
.scout-value .scout-para + .scout-bullet,
.scout-value .scout-bullet + .scout-para { margin-top: 8px; }
.scout-bullet { position: relative; padding-left: 15px; }
.scout-bullet::before { content: "—"; position: absolute; left: 0; color: var(--gold); opacity: .65; }

/* ============ POSITION BREAKDOWN ============ */
.pos-chart {
  margin-top: 34px; background: var(--ink-2);
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 24px 26px;
}
.pos-row {
  display: grid; grid-template-columns: 132px 1fr 34px;
  align-items: center; gap: 14px; padding: 7px 0;
}
.pos-label { font-size: 13px; color: var(--muted); text-align: right; }
.pos-track { background: #1c1c26; border-radius: 4px; height: 15px; overflow: hidden; }
.pos-bar { height: 100%; background: #2a2a3a; border-radius: 4px; transition: width .4s ease; }
.pos-bar-trench { background: var(--teal); }
.pos-count {
  font-family: var(--display); font-size: 15px; color: var(--white); text-align: right;
}
@media (max-width: 560px) {
  .pos-row { grid-template-columns: 96px 1fr 28px; gap: 10px; }
  .pos-label { font-size: 11.5px; }
}
.feed-cta { margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.feed-cta a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.footer-fine a { color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.footer-fine a:hover { color: var(--teal); }

/* ============ KEYBOARD ACCESSIBILITY ============ */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.card-link:focus-visible,
.team-chip:focus-visible,
.board-row:focus-visible {
  outline-offset: 2px;
  border-color: var(--teal);
}
.filter-btn:focus-visible { outline-offset: 2px; }

/* Skip link — first tab stop, hidden until focused */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: #06231a;
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: 0; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .card:hover, .team-chip:hover, .board-row:hover, .btn-primary:hover { transform: none; }
}
