/* Styles for layouts/seo_base.html and the pages that extend it */
.seo-page { --sp-gold: var(--gold); --sp-slate: var(--text-muted); --sp-white: var(--text);
            --sp-green: var(--field-green); --sp-line: rgba(var(--overlay-rgb),0.08); }
body { background: var(--bg-seo); color: var(--text); font-family: var(--font-body); margin: 0; }
.seo-page { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.seo-page a { color: var(--sp-gold); }
.seo-page h1, .seo-page h2, .seo-page h3 { font-family: var(--font-display); letter-spacing: 0.01em; }
.seo-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 6px 0 6px; color: var(--sp-white); }
.seo-page h2 { font-size: 1.35rem; margin: 34px 0 12px; color: var(--sp-gold); }
.crumbs { font-size: 0.82rem; color: var(--sp-slate); }
.crumbs a { color: var(--sp-slate); text-decoration: none; }
.crumbs a:hover { color: var(--sp-gold); text-decoration: underline; }
.lede { color: var(--sp-slate); font-size: 1.02rem; max-width: 760px; line-height: 1.55; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.pill { background: rgba(var(--gold-rgb),0.08); border: 1px solid rgba(var(--gold-rgb),0.25); color: var(--sp-white);
        border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; }
.pill strong { color: var(--sp-gold); font-weight: 600; }
.stat-table-wrap { overflow-x: auto; border: 1px solid var(--sp-line); border-radius: 10px; }
table.stat-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.stat-table th, .stat-table td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--sp-line); }
.stat-table th:first-child, .stat-table td:first-child,
.stat-table th:nth-child(2), .stat-table td:nth-child(2) { text-align: left; }
.stat-table thead th { color: var(--sp-slate); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; background: rgba(var(--overlay-rgb),0.03); }
.stat-table tfoot td { font-weight: 700; color: var(--sp-gold); border-bottom: 0; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; padding: 0; list-style: none; }
.link-grid li { padding: 6px 0; border-bottom: 1px solid var(--sp-line); font-size: 0.92rem; }
.link-grid a { text-decoration: none; }
.link-grid a:hover { text-decoration: underline; }
.muted { color: var(--sp-slate); font-size: 0.82rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.seo-btn { display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.seo-btn.primary { background: var(--sp-gold); color: var(--on-gold) !important; }
.seo-btn.ghost { border: 1px solid var(--sp-line); color: var(--sp-white) !important; }
.letter-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.letter-nav a { padding: 3px 9px; border: 1px solid var(--sp-line); border-radius: 6px; text-decoration: none; }
@media (max-width: 600px) { .seo-page { padding: 18px 14px 48px; } .stat-table th, .stat-table td { padding: 8px; } }

/* players/index.html */
.player-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.player-search input, .player-search select {
  background: rgba(var(--overlay-rgb),0.05); border: 1px solid var(--sp-line); border-radius: 8px;
  color: var(--sp-white); font: inherit; padding: 9px 12px;
}
.player-search input { flex: 1; min-width: 220px; }
.player-table th, .player-table td { text-align: left !important; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.featured-grid h3 { font-size: 1rem; margin: 6px 0; }
.featured-grid ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* players/detail.html */
.rank-intro { max-width: 760px; line-height: 1.5; }
.rank-season { margin: 10px 0; }
.rank-season summary { cursor: pointer; padding: 8px 0; }
.rank-table th, .rank-table td { text-align: left !important; white-space: normal; }
.rank-table .th-sub { display: block; font-weight: 400; text-transform: none; }
.rank-text { display: inline-block; min-width: 82px; font-weight: 600; }
.rank-bar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: rgba(var(--overlay-rgb),0.08); vertical-align: middle; margin: 0 6px; }
.rank-bar span { display: block; height: 100%; border-radius: 3px; background: var(--sp-gold); }
