:root { --bg:#f5f6f8; --surface:#fff; --line:#d9dee7; --text:#18202b; --muted:#667085; --accent:#1b1f5e; --accent-2:#b08a42; --base:#101820; --radius:8px; }
* { box-sizing: border-box; }
body { margin:0; font-family:"Yu Gothic","Meiryo",system-ui,sans-serif; background:var(--bg); color:var(--text); }
a { color: inherit; text-decoration: none; }
button,input,select { font:inherit; }
.site-header { background:var(--base); color:#fff; border-bottom:4px solid var(--accent); }
.topbar { max-width:1320px; margin:0 auto; padding:18px 24px 16px; display:grid; grid-template-columns:270px 1fr auto; gap:18px; align-items:center; }
.brand { display:grid; grid-template-columns:54px minmax(0,1fr); gap:10px; align-items:center; }
.brand strong { font-size:21px; line-height:1.2; }
.brand-logo { width:54px; height:54px; object-fit:cover; border-radius:50%; border:2px solid rgba(255,255,255,.82); background:#000; }
.brand-copy { display:grid; gap:2px; min-width:0; }
.brand-copy span,.stat-strip { color:#d6dde8; font-size:12px; }
.search-panel { display:grid; gap:6px; }
.search-panel input { width:100%; min-height:46px; border:0; background:#fff; color:var(--text); border-radius:0; padding:0 10px 0 0; outline:none; }
.search-panel option { color:#111; }
.search-label { color:#eef4fb; font-size:12px; font-weight:800; }
.search-box { display:grid; grid-template-columns:38px minmax(0,1fr) 86px; align-items:center; min-height:50px; background:#fff; border:2px solid rgba(255,255,255,.72); border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,.18); overflow:hidden; }
.search-icon { color:var(--accent); display:grid; place-items:center; font-size:17px; }
.search-button { height:100%; border:0; background:var(--accent); color:#fff; font-weight:800; cursor:pointer; }
.search-button:hover { filter:brightness(.96); }
.search-panel:focus-within .search-box { border-color:var(--accent-2); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-2) 32%,transparent),0 10px 24px rgba(0,0,0,.2); }
.search-panel input::placeholder { color:#6f7b8a; }
.stat-strip { display:flex; gap:14px; white-space:nowrap; }
.page-shell { max-width:1320px; margin:0 auto; padding:18px 24px 36px; }
.crumbs { min-height:28px; display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; }
.crumbs a { color:var(--base); font-weight:700; }
.hero { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; align-items:stretch; margin-bottom:16px; }
.hero-main,.panel,.metric,.card,.table-card,.detail-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.hero-main { padding:22px; border-top:5px solid var(--accent); }
.kicker { color:var(--accent); font-weight:800; font-size:12px; margin-bottom:6px; }
h1 { margin:0; font-size:30px; line-height:1.25; }
.lead { margin:10px 0 0; color:var(--muted); line-height:1.75; }
.hero-side { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.metric { padding:14px; min-height:86px; }
.metric strong { display:block; font-size:28px; line-height:1.15; }
.metric span { color:var(--muted); font-size:12px; }
.section { margin-top:18px; }
.section-title { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:0 0 10px; }
.section-title h2 { margin:0; font-size:27px; }
.section-title span { color:var(--muted); font-size:12px; }
.grid { display:grid; gap:10px; }
.team-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.org-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.card { padding:13px; cursor:pointer; transition:border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 6%,#fff); transform:translateY(-1px); box-shadow:0 8px 18px rgba(16,24,32,.08); }
.team-card { display:grid; grid-template-columns:12px 1fr auto; gap:10px; align-items:center; }
.swatch { width:12px; height:44px; border-radius:6px; background:var(--accent); }
.card strong { display:block; line-height:1.35; }
.card .meta,.muted { color:var(--muted); font-size:12px; }
.layout-2 { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:16px; align-items:start; }
.table-card { overflow:hidden; }
table { width:100%; border-collapse:collapse; background:#fff; }
th,td { padding:10px 12px; border-bottom:1px solid #edf0f4; text-align:left; vertical-align:middle; font-size:13px; }
th { background:#f8fafc; color:var(--muted); font-weight:700; white-space:nowrap; }
tbody tr.clickable { cursor:pointer; }
tbody tr.clickable:hover { background:color-mix(in srgb,var(--accent) 9%,#fff); }
.number { width:48px; text-align:center; font-weight:800; color:var(--base); }
.name-cell strong { display:block; font-size:15px; }
.name-cell span { color:var(--muted); font-size:12px; }
.chips { display:flex; flex-wrap:wrap; gap:5px; }
.chip { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#344054; font-size:12px; white-space:nowrap; }
.chip.high_school { border-color:#8cc1a5; color:#176247; }
.chip.university { border-color:#8fb4de; color:#275f9f; }
.chip.company { border-color:#d5af6d; color:#8a5d11; }
.chip.independent { border-color:#bb9ed9; color:#68419a; }
.chip.former { border-color:#e69b95; color:#a83731; }
.detail-card { padding:16px; }
.player-head { display:grid; grid-template-columns:72px 1fr; gap:14px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--line); }
.uniform { height:72px; border-radius:var(--radius); display:grid; place-items:center; color:#fff; font-weight:900; font-size:22px; background:var(--accent); }
.player-head h1,.player-head h2 { margin:0; font-size:26px; line-height:1.25; }
.summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:14px 0; }
.summary-grid div { background:#f7f8fa; border-radius:6px; padding:9px; min-height:58px; }
.summary-grid strong { display:block; font-size:20px; }
.summary-grid span { color:var(--muted); font-size:11px; }
.relation-list { display:grid; gap:8px; }
.relation-card { border:1px solid var(--line); border-radius:var(--radius); padding:10px; background:#fff; cursor:pointer; transition:border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.relation-card:hover { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 6%,#fff); box-shadow:0 8px 18px rgba(16,24,32,.08); transform:translateY(-1px); }
.relation-card strong { display:block; margin-bottom:5px; }
.relation-card .line { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; }
.connection-list { display:grid; gap:8px; }
.connection-row { display:grid; grid-template-columns:minmax(210px,260px) 1fr 56px; gap:10px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:10px; }
.bar-track { height:12px; background:#edf0f4; border-radius:999px; overflow:hidden; }
.bar { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:999px; }
.actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.action { border:1px solid var(--line); background:#fff; border-radius:var(--radius); padding:8px 10px; cursor:pointer; }
.action.primary { background:var(--base); color:#fff; border-color:var(--base); }
.empty { padding:28px; text-align:center; color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
@media (max-width:1080px){ .topbar,.hero,.layout-2{grid-template-columns:1fr}.stat-strip{white-space:normal}.team-grid,.org-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:720px){ .topbar,.page-shell{padding-left:14px;padding-right:14px}.search-panel,.hero-side,.summary-grid,.team-grid,.org-grid{grid-template-columns:1fr}.connection-row{grid-template-columns:1fr} th:nth-child(3),td:nth-child(3),th:nth-child(5),td:nth-child(5){display:none} }
.relation-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.relation-tabs button { min-height:34px; border:1px solid var(--line); background:#fff; border-radius:999px; padding:0 12px; cursor:pointer; }
.relation-tabs button.active { background:var(--base); color:#fff; border-color:var(--base); }
.career-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.career-list li { display:grid; grid-template-columns:92px minmax(0,1fr) 88px; gap:8px; align-items:center; border:1px solid var(--line); border-radius:var(--radius); background:#fff; padding:8px 10px; }
.career-list span { color:var(--accent); font-size:12px; font-weight:800; }
.career-list strong { min-width:0; }
.career-list em { color:var(--muted); font-style:normal; font-size:12px; text-align:right; }
@media (max-width:720px){ .career-list li { grid-template-columns:1fr; } .career-list em { text-align:left; } }
.team-badge { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:999px; background:color-mix(in srgb, var(--accent) 10%, #fff); border:1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); color:var(--base); font-weight:700; font-size:12px; }
.topbar { position: relative; }
.live-search-results { position:absolute; left:312px; right:220px; top:66px; z-index:20; background:#fff; color:var(--text); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 14px 34px rgba(16,24,32,.18); overflow:hidden; }
.live-search-head { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; background:#f8fafc; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.live-search-list { display:grid; max-height:360px; overflow:auto; }
.live-result { display:grid; grid-template-columns:74px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 12px; border-bottom:1px solid #edf0f4; cursor:pointer; }
.live-result:last-child { border-bottom:0; }
.live-result:hover { background:color-mix(in srgb, var(--accent) 8%, #fff); }
.live-result-type { color:var(--accent); font-weight:800; font-size:12px; }
.live-result strong { display:block; line-height:1.35; }
.live-result span { color:var(--muted); font-size:12px; }
.live-result-count { color:var(--muted); font-size:12px; white-space:nowrap; }
@media (max-width:1080px){ .live-search-results { position:static; grid-column:1 / -1; margin-top:8px; } }
.career-summary { display:flex; flex-wrap:wrap; gap:4px; max-width:460px; }
.career-summary span { display:inline-flex; align-items:center; gap:4px; max-width:100%; min-height:22px; padding:0 7px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:12px; }
.career-summary strong { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.team-distribution { display:grid; gap:5px; margin:0 0 10px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius); background:#fbfcfe; }
.team-dist-row { display:grid; grid-template-columns:minmax(112px,170px) minmax(0,1fr) 32px; gap:8px; align-items:center; min-height:20px; font-size:12px; }
.team-dist-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
.team-dist-row strong { text-align:right; color:var(--base); }
.team-dist-track { height:8px; background:#e9edf3; border-radius:999px; overflow:hidden; }
.team-dist-bar { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:999px; }
@media (max-width:720px){ .career-summary strong { max-width:110px; } .team-dist-row { grid-template-columns:minmax(92px,128px) minmax(0,1fr) 28px; } }
.header-nav { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-items:center; font-size:12px; }
.header-nav a { min-height:30px; display:inline-flex; align-items:center; padding:0 9px; border:1px solid rgba(255,255,255,.22); border-radius:999px; color:#eef4fb; background:rgba(255,255,255,.06); }
.header-nav a:hover { background:rgba(255,255,255,.14); }
.site-footer { background:#0f1720; color:#e9eef5; border-top:4px solid var(--accent); margin-top:24px; }
.footer-inner { max-width:1320px; margin:0 auto; padding:28px 24px; display:grid; grid-template-columns:minmax(260px,360px) 1fr; gap:28px; }
.footer-about strong { display:block; font-size:27px; margin-bottom:8px; }
.footer-about p { margin:0 0 12px; color:#c8d2df; line-height:1.7; font-size:13px; }
.footer-meta { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; }
.footer-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.footer-links h2 { margin:0 0 8px; font-size:13px; color:#fff; }
.footer-links a { display:block; color:#d8e2ee; font-size:12px; line-height:1.45; padding:4px 0; }
.footer-links a:hover { color:#fff; text-decoration:underline; }
.footer-link-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:10px; }
@media (max-width:1080px){ .header-nav { justify-content:flex-start; } .footer-inner,.footer-links { grid-template-columns:1fr; } .footer-link-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:720px){ .header-nav a { min-height:34px; } .footer-inner { padding:24px 14px; } .footer-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.career-list a,.career-summary a { color:var(--base); text-decoration:none; }
.career-list a:hover,.career-summary a:hover { color:var(--accent); text-decoration:underline; }
.hero-simple { grid-template-columns:1fr; }
.featured-player-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.featured-player-card { min-width:0; padding:12px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; cursor:pointer; transition:border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.featured-player-card:hover { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 6%,#fff); box-shadow:0 8px 18px rgba(16,24,32,.08); transform:translateY(-1px); }
.featured-player-card > div:first-child { margin-bottom:8px; }
.featured-player-card strong { display:block; line-height:1.35; }
.featured-player-card span { display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.featured-player-card .career-summary { max-width:none; }
@media (max-width:1080px){ .featured-player-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px){ .featured-player-grid { grid-template-columns:1fr; } }
.position-groups { display:grid; gap:14px; }
.position-group { min-width:0; }
.position-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 6px; padding:0 2px; }
.position-heading h3 { margin:0; font-size:14px; color:var(--base); }
.position-heading span { color:var(--muted); font-size:12px; }
.related-org-groups { display:grid; gap:14px; }
.related-org-group { min-width:0; }
.related-org-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 6px; padding:0 2px; }
.related-org-heading h3 { margin:0; font-size:14px; color:var(--base); }
.related-org-heading span { color:var(--muted); font-size:12px; }
.related-org-group .org-grid { grid-template-columns:1fr; }
.list-link { position:relative; display:block; color:inherit; text-decoration:none; }
.list-link::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; }
.list-link:focus-visible { outline:3px solid color-mix(in srgb,var(--accent-2) 52%,transparent); outline-offset:2px; }
.list-link:hover strong,.primary-row-link:hover strong { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.link-cue,.row-cue { display:inline-flex; align-items:center; gap:4px; margin-top:8px; color:var(--accent); font-size:12px; font-weight:800; }
.link-cue::after,.row-cue::after { content:"?"; font-weight:900; }
.link-arrow { color:var(--accent); font-weight:900; }
.primary-row-link { display:inline-grid; color:inherit; text-decoration:none; }
.primary-row-link span { color:var(--muted); font-size:12px; }
.linked-row td:last-child { white-space:nowrap; }
.relation-count { margin-right:8px; }
.row-cue { margin-top:0; }


.team-card.list-link,.live-result.list-link { display:grid; }

/* Stable global header/search colors and roster readability */
.site-header { background:#101820; border-bottom-color:#b08a42; }
.search-icon { color:#1b1f5e; }
.search-button { background:#1b1f5e; }
.search-panel:focus-within .search-box { border-color:#b08a42; box-shadow:0 0 0 3px color-mix(in srgb,#b08a42 32%,transparent),0 10px 24px rgba(0,0,0,.2); }
.table-card { overflow-x:auto; }
.table-card table { min-width:720px; }
.name-cell { min-width:136px; }
.name-cell strong,.primary-row-link strong { white-space:nowrap; }
@media (max-width:720px){ .table-card table { min-width:560px; } .name-cell { min-width:128px; } }

/* Page width normalization */
html,body { width:100%; max-width:100%; }
body { overflow-x:hidden; }
.site-header,.site-footer,.page-shell { width:100%; }
.topbar,.page-shell,.footer-inner { width:100%; max-width:1320px; }
#app,.section,.hero,.hero-main,.hero-side,.layout-2,.layout-2 > *,aside,.detail-card,.panel,.metric,.position-groups,.position-group,.related-org-groups,.related-org-group,.grid,.card { min-width:0; }
.table-card { width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; }
.table-card table { width:100%; min-width:620px; }
@media (max-width:720px){ body { overflow-x:hidden; } .table-card table { min-width:420px; } .topbar,.page-shell,.footer-inner { max-width:100%; } }
.search-panel,.header-nav { min-width:0; }
.brand strong,h1,h2,h3,.lead,.card strong,.relation-card strong,.footer-about strong { overflow-wrap:anywhere; }
.relation-card .line span,.live-result strong,.live-result span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1200px) and (min-width:1081px){ .topbar { grid-template-columns:minmax(230px,270px) minmax(0,1fr); } .header-nav { grid-column:1 / -1; justify-content:flex-start; } .live-search-results { left:312px; right:24px; } }
/* Floating external account link */
.floating-x-link { position:fixed; right:18px; bottom:18px; z-index:50; width:63px; height:63px; display:grid; place-items:center; border-radius:50%; background:#101820; color:#fff; border:1px solid rgba(255,255,255,.22); box-shadow:0 10px 24px rgba(16,24,32,.22); font-weight:900; font-size:27px; text-decoration:none; transition:transform .15s, box-shadow .15s, background .15s; }
.floating-x-link:hover { transform:translateY(-2px); background:#000; box-shadow:0 14px 28px rgba(16,24,32,.28); }
.floating-x-link:focus-visible { outline:3px solid #b08a42; outline-offset:3px; }
@media (max-width:720px){ .floating-x-link { right:14px; bottom:14px; width:60px; height:60px; } }
