:root {
  --bg: #f3f1ec; --panel: #fffdf9; --ink: #16233b; --muted: #5d6779; --line: #dcd8cd; --soft: #ece8df;
  --accent: #0f1b2d; --accent-soft: #eef1f5; --hot: #0f1b2d; --red: #e5383b; --red-deep: #c62828; --red-soft: #fdecec; --navy: #0d1a30; --navy2: #16233b;
  --good: #15803d; --bad: #c0261d; --range: #f3b4b4;
  --shadow: 0 1px 2px rgba(18,24,38,.05), 0 8px 24px -12px rgba(18,24,38,.18);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); letter-spacing: -0.01em; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ===== 머리말 ===== */
header.top { background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--f) 8%, transparent); position: sticky; top: 0; z-index: 20; }
.bar { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--on); white-space: nowrap; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.tag { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--f) 70%, transparent); border: 1px solid color-mix(in srgb, var(--f) 25%, transparent); border-radius: 999px; padding: 0 8px; }
.nav { display: flex; gap: 4px; }
.nav a { color: color-mix(in srgb, var(--f) 70%, transparent); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.nav a[aria-current=page] { color: var(--on); background: color-mix(in srgb, var(--f) 14%, transparent); }
.nav a:hover { text-decoration: none; color: var(--on); }
.search { position: relative; margin-left: auto; flex: 1 1 200px; max-width: 320px; }
input, select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.bar .search input { width: 100%; background: color-mix(in srgb, var(--f) 10%, transparent); border-color: color-mix(in srgb, var(--f) 16%, transparent); color: var(--on); border-radius: 999px; padding-left: 16px; }
.bar .search input::placeholder { color: color-mix(in srgb, var(--f) 55%, transparent); }
#qlist, #hqlist { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.28); z-index: 30; text-align: left; }
#qlist li a, #hqlist li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
#qlist li a span, #hqlist li a span { color: var(--muted); font-size: 13px; white-space: nowrap; }
#qlist li a:hover, #qlist li a.on, #hqlist li a:hover, #hqlist li a.on { background: var(--accent-soft); text-decoration: none; }

/* ===== 본문 ===== */
main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 56px; display: flex; flex-direction: column; gap: 22px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: 18px; margin: 0; font-weight: 750; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--hot); flex: none; }
.sub { color: var(--muted); margin: 0; }
.note { color: var(--muted); font-size: 13.5px; margin: 0; }
.loading, .empty { color: var(--muted); text-align: center; padding: 60px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
.row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.row label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.foot { background: var(--navy); color: color-mix(in srgb, var(--f) 62%, transparent); font-size: 12.5px; padding: 28px 20px 36px; }
.foot > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.foot p { margin: 5px auto; }

/* ===== 배너 (순위·선수 페이지 머리) ===== */
.banner { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 32px; color: var(--on);
  background: radial-gradient(120% 140% at 100% 0%, #24407a 0%, transparent 55%), linear-gradient(135deg, var(--navy), var(--navy2)); box-shadow: var(--shadow); }
.banner > * { position: relative; z-index: 1; }
.banner .court-bg { position: absolute; z-index: 0; right: -40px; top: -30px; width: 420px; height: auto; opacity: .16; pointer-events: none; }
.banner h1 { color: var(--on); font-size: 30px; }
.banner .sub, .banner .meta { color: color-mix(in srgb, var(--f) 72%, transparent); margin: 6px 0 0; }
.banner .btn { background: color-mix(in srgb, var(--f) 12%, transparent); color: var(--on); backdrop-filter: blur(4px); }
.banner .btn:hover { background: color-mix(in srgb, var(--f) 20%, transparent); }
.banner .note { color: color-mix(in srgb, var(--f) 70%, transparent); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hot); }

/* ===== 홈: 검색부터 시작하는 선수 가치 매거진 ===== */
.bar { max-width: 1200px; min-height: 76px; gap: 24px; }
body[data-page=home] .bar > .search { display: none; }
.nav { margin-left: auto; gap: 8px; align-items: center; }
.nav > a { border-radius: 4px; padding: 8px 11px; font-size: 14px; }
body[data-page=home] main { max-width: none; padding: 0; gap: 0; }
h2::before { display: none; }
.home-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.home-more-nav { position: relative; color: #c2ccdc; font-size: 14px; }
.home-more-nav summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; padding: 0 11px; }
.home-more-nav summary::after { content: '⌄'; margin-left: 6px; }
.home-more-nav[open] > a { display: block; position: absolute; right: 0; width: 160px; background: var(--navy2); border: 1px solid #3d4c67; border-radius: 0; padding: 12px 16px; color: #fff; }
.home-more-nav > a:last-child { top: 88px; }
.home-hero { color: var(--on); background: var(--navy); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); position: relative; }
.home-hero-copy { position: relative; z-index: 2; padding: 40px 0 42px; }
.home-season-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: #acbad0; font-size: 12px; }
.home-season-tag { padding: 4px 9px; border: 1px solid #4e5b70; border-radius: 4px; color: #e5ebf6; font-size: 12px; font-weight: 650; }
.home-hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.16; letter-spacing: -.05em; margin: 19px 0 16px; font-weight: 800; color: var(--on); }
.home-hero-copy > p:not(.home-hero-note) { margin: 0 0 25px; color: #c7d2e4; font-size: 16px; }
.home-search-row { display: flex; gap: 12px; align-items: center; max-width: 710px; }
.home-search-row .search { flex: 1; margin: 0; max-width: none; min-width: 0; order: 0; }
.home-search-row input { width: 100%; padding: 15px 15px 15px 44px; border-radius: 7px; background: #fffdf9; color: #16233b; font-size: 15px; min-height: 54px; border: 1px solid #fffdf9; }
.home-search-row input::placeholder { color: #657084; }
.home-search-icon { position: absolute; left: 14px; top: 6px; color: #16233b; font-size: 28px; pointer-events: none; }
.home-team-jump { color: var(--on); display: inline-flex; gap: 14px; align-items: center; min-height: 54px; padding: 0 15px; border: 1px solid #63718a; border-radius: 7px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.home-team-jump:hover { background: #233249; text-decoration: none; }
.home-hero-note { font-size: 12px; margin: 12px 0 0; color: #a9b8cd; }
.home-hero-art { position: relative; overflow: hidden; pointer-events: none; }
.home-hero-art .court-bg { position: absolute; width: 490px; height: 400px; max-width: none; top: -4px; left: 4px; opacity: .11; transform: rotate(-12deg); }
.home-hero-art > span { position: absolute; bottom: 24px; right: 10px; color: color-mix(in srgb, var(--f) 7%, transparent); font-size: 108px; font-weight: 850; letter-spacing: -.06em; }
/* 사용 허가된 사진을 연결할 때에만 오른쪽 슬롯을 사용한다. 제목·검색은 단색 영역에 유지. */
.home-photo-slot:has(img) { position: absolute; inset: 24px 0 24px 24px; overflow: hidden; border-radius: 8px; }
.home-photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.home-body { padding-bottom: 72px; }
.home-team-strip { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 20px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 95px; }
.home-team-strip > span { font-size: 13px; line-height: 1.5; font-weight: 750; }
.home-team-strip > div { display: flex; gap: 7px 8px; flex-wrap: wrap; }
.home-team-strip a { padding: 6px 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; font-weight: 600; }
.home-team-strip a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.home-section { margin-top: 56px; min-width: 0; }
.home-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.home-section-head h2 { font-size: 27px; font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.home-section-head p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.home-section-head > a { font-size: 13px; font-weight: 650; white-space: nowrap; color: var(--ink); padding-bottom: 3px; }
.home-section-head > a > span { color: var(--accent); margin-left: 8px; }
.home-player-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-player { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.home-player-id { background: var(--soft); position: relative; height: 105px; flex: none; padding: 15px 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.home-player:first-child .home-player-id { background: var(--navy2); color: #fff; }
.home-player-rank { position: relative; z-index: 1; font-size: 11px; font-weight: 700; }
.home-player-mark { position: absolute; right: 14px; bottom: -30px; font-size: 100px; font-weight: 900; line-height: 1.2; color: var(--ink); opacity: .06; }
.home-player:first-child .home-player-mark { color: #fff; opacity: .08; }
.home-player-team { font-size: 13px; font-weight: 650; position: relative; z-index: 1; }
.home-player-body { padding: 19px 18px 0; display: flex; flex-direction: column; flex: 1; }
.home-card-season { color: var(--muted); font-size: 11px; font-weight: 550; }
.home-player h3 { margin: 7px 0 auto; font-size: 23px; letter-spacing: -.04em; line-height: 1.3; min-height: 30px; overflow-wrap: anywhere; }
.home-player h3 a { color: var(--ink); }
.home-war { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; }
.home-war b { font-size: 43px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.home-war > span { font-size: 12px; color: var(--muted); font-weight: 650; }
.home-player-sample { color: var(--muted); font-size: 12px; margin: 13px 0 19px; display: flex; flex-wrap: wrap; gap: 3px 10px; }
.home-player-actions { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-top: 1px solid var(--line); min-height: 49px; }
.home-player-actions a { color: var(--muted); font-size: 12px; font-weight: 650; }
.home-player-actions button { font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 0 0 6px; }
.home-player-actions button[aria-pressed=true] { color: var(--accent); }
.home-data-note { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 15px 0 0; }
.home-comparison { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin-top: 16px; background: var(--navy2); color: #fff; border-radius: 7px; font-size: 13px; }
.home-comparison > span { margin-right: auto; }
.home-comparison > a { background: #c62828; padding: 9px 13px; border-radius: 4px; color: #fff; font-weight: 650; }
.home-comparison > button { font: inherit; color: #d2deee; background: none; border: 0; cursor: pointer; padding: 9px 7px; }
.home-standings-body { display: grid; grid-template-columns: 1fr 2.4fr; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; overflow: hidden; }
.home-standings-body aside { padding: 29px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: start; background: var(--soft); }
.home-standings-body aside > span { font-size: 12px; color: var(--muted); font-weight: 650; }
.home-standings-body aside h3 { font-size: 29px; line-height: 1.3; letter-spacing: -.04em; margin: 22px 0 12px; }
.home-standings-body aside p { font-size: 14px; color: var(--muted); max-width: 15em; }
.home-standings-body aside a { font-size: 13px; font-weight: 650; margin-top: auto; padding-top: 20px; }
.home-team-table { overflow-x: auto; }
.home-team-table table { font-size: 14px; }
.home-team-table thead th { background: var(--panel); padding: 14px 18px; font-size: 12px; font-weight: 600; }
.home-team-table tbody th { background: transparent; font-size: 14px; font-weight: 650; }
.home-team-table th, .home-team-table td { padding: 12px 18px; }
.home-team-table tbody tr:last-child th { border-bottom: 0; }
.home-team-table tbody th a { color: var(--ink); display: inline-flex; gap: 12px; align-items: center; }
.home-team-badge { display: inline-grid; place-items: center; width: 30px; height: 28px; background: var(--soft); border-radius: 4px; font-size: 10px; color: var(--muted); flex: none; }
.home-forecast { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.home-forecast-feature { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 27px 28px 24px; display: grid; grid-template-columns: 1fr auto; gap: 22px 14px; }
.home-forecast-feature h3 { margin: 12px 0 4px; font-size: 32px; line-height: 1.25; letter-spacing: -.04em; overflow-wrap: anywhere; }
.home-forecast-feature h3 a { color: var(--ink); }
.home-forecast-team { font-size: 14px; color: var(--muted); margin: 0; }
.home-forecast-value { display: flex; flex-direction: column; align-items: end; justify-content: center; gap: 6px; }
.home-forecast-value > span { color: var(--muted); font-size: 12px; }
.home-forecast-value > b { color: var(--accent); font-size: 53px; line-height: 1; letter-spacing: -.05em; font-weight: 800; font-variant-numeric: tabular-nums; }
.home-forecast-range { grid-column: 1 / -1; background: var(--soft); padding: 16px 18px; border-radius: 5px; }
.home-range-label { display: block; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.home-forecast .rbar { width: 100%; height: 18px; margin-top: 8px; }
.home-forecast-foot { grid-column: 1 / -1; font-size: 11px; color: var(--muted); line-height: 1.8; margin: 0; }
.home-forecast-list { min-width: 0; }
.home-forecast-list > h3 { font-size: 14px; margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.home-forecast-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.home-forecast-row:hover { text-decoration: none; }
.home-forecast-row strong { font-size: 17px; display: block; overflow-wrap: anywhere; }
.home-forecast-row > div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.home-forecast-mini { text-align: right; min-width: 0; }
.home-forecast-mini > b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.home-forecast-mini small { font-size: 10px; font-weight: 550; color: var(--muted); letter-spacing: normal; }
.home-forecast-mini .rbar { width: 150px; max-width: 100%; margin-top: 3px; }
.home-text-link { font-size: 13px; font-weight: 650; display: inline-block; margin-top: 18px; }
.home-explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.home-explore { display: flex; gap: 20px; padding: 26px; background: var(--soft); color: var(--ink); border-radius: 8px; align-items: start; }
.home-explore:hover { text-decoration: none; background: color-mix(in srgb, var(--soft), var(--panel) 40%); }
.home-explore h3 { font-size: 20px; margin: 0; line-height: 1.45; letter-spacing: -.03em; text-wrap: pretty; }
.home-explore p { color: var(--muted); font-size: 13px; margin: 10px 0 22px; }
.home-explore span { color: var(--accent); font-size: 12px; font-weight: 700; }
.home-explore-icon { flex: none; width: 32px; padding-top: 2px; color: var(--red); }
.home-explore-icon svg { width: 28px; height: 28px; }
.home-method { margin-top: 25px; scroll-margin-top: 100px; }
.home-method details { border-top: none; padding: 0; }
.home-method summary { font-size: 13px; }
.home-state { color: var(--muted); font-size: 14px; padding: 32px 20px; grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 8px; margin: 0; background: var(--panel); }
.home-muted { color: var(--muted); font-size: 13px; }
.home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .bar { gap: 12px; }
  .nav { gap: 0; }
  .home-player-grid { gap: 12px; }
  .home-player-body { padding: 17px 14px 0; }
  .home-player h3 { font-size: 21px; }
  .home-player-sample { min-height: 38px; }
  .home-forecast { gap: 22px; }
  .home-forecast-feature { padding: 22px; }
  .home-forecast-value > b { font-size: 44px; }
}
@media (max-width: 760px) {
  .bar { min-height: 64px; padding: 12px 20px; }
  .nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav > a { padding: 6px; font-size: 13px; }
  .home-container { padding-left: 20px; padding-right: 20px; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-copy { padding: 30px 0; }
  .home-hero-art { display: none; }
  .home-hero h1 { font-size: 43px; }
  .home-team-strip { grid-template-columns: 1fr; gap: 12px; }
  .home-team-strip > span br { display: none; }
  .home-section { margin-top: 40px; }
  .home-section-head h2 { font-size: 24px; }
  .home-section-head p { font-size: 13px; }
  .home-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .home-standings-body { grid-template-columns: 1fr; }
  .home-standings-body aside { display: none; }
  .home-team-table th, .home-team-table td { padding: 12px 10px; }
  .home-team-table tbody th a { gap: 7px; font-size: 12px; }
  .home-team-badge { width: 24px; height: 24px; font-size: 9px; }
  .home-forecast, .home-explore-grid { grid-template-columns: 1fr; }
  .home-explore { padding: 22px; }
}
@media (max-width: 420px) {
  .home-search-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .home-team-jump { min-height: 42px; justify-content: center; }
  .home-player-id { padding: 13px; height: 88px; }
  .home-player h3 { font-size: 20px; min-height: 52px; }
  .home-war b { font-size: 35px; }
  .home-player-actions { flex-wrap: wrap; gap: 0; padding: 7px 0; }
  .home-player-actions a { padding: 5px 0; }
  .home-player-actions button { padding-left: 0; min-height: 35px; }
  .home-season-line { font-size: 10px; gap: 8px; }
}

/* 이니셜 아바타 (사진 대신) */
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex: none; letter-spacing: 0;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 30) 70% 32%)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 4px 12px rgba(0,0,0,.2); }
.av.s { width: 40px; height: 40px; font-size: 17px; }
.av.m { width: 64px; height: 64px; font-size: 27px; }
.av.l { width: 96px; height: 96px; font-size: 42px; }

/* ===== 표 ===== */
.tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--hot) 6%, transparent); }
th { background: var(--soft); font-weight: 650; font-size: 12.5px; color: var(--muted); }
th button { all: unset; cursor: pointer; }
th button:hover { color: var(--ink); }
th button:focus-visible { outline: 2px solid var(--hot); }
th[aria-sort] { color: var(--accent); }
td.n, th.n { text-align: right; }
td.rk { color: var(--muted); width: 1%; font-weight: 700; }
tbody tr:nth-child(-n+3) td.rk { color: var(--accent); }
.sticky th:nth-child(2), .sticky td:nth-child(2) { position: sticky; left: 0; background: var(--panel); z-index: 1; }
.sticky th:nth-child(2) { background: var(--soft); }
td .tm { display: block; color: var(--muted); font-size: 12px; }
td.dim, .dim { color: var(--muted); }
.wbar { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.wbar i { display: inline-block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f26b6e, #e5383b); min-width: 2px; }
.wbar i.neg { background: var(--bad); opacity: .7; }

/* ===== 선수 ===== */
.phead.banner { display: flex; align-items: center; gap: 24px; }
.phead .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phead .share { margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hot); opacity: .85; }
.tile:nth-child(2)::after { background: #4f8cff; } .tile:nth-child(3)::after { background: #34d399; } .tile:nth-child(4)::after { background: #a78bfa; }
.tile .lb { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tile .v { font-size: 32px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 2px 0; }
.tile .d { color: var(--muted); font-size: 12.5px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--muted); font: 11px var(--font); }
svg.chart .grid { stroke: var(--line); }
svg.chart .zero { stroke: var(--muted); }
svg.chart .bar { fill: url(#barg); }
svg.chart .bar.neg { fill: var(--bad); opacity: .75; }
svg.chart .rng { stroke: var(--ink); stroke-width: 1.5; opacity: .55; }
svg.chart .hit { fill: transparent; }
svg.chart .hit:hover + .bar, svg.chart g:hover .bar { opacity: .75; }
h3.wk { font-size: 15px; margin: 0 0 6px; }
.wklist { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.wklist li { line-height: 1.5; }
.chg { font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 4px; }
.chg.good { color: var(--good); } .chg.bad { color: var(--bad); }
.btn { font: inherit; font-size: 14px; font-weight: 650; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-block; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.about ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about li { line-height: 1.65; padding-left: 26px; position: relative; }
.about li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6fa3ff, #1f5fd6); }
svg.chart .lbl { fill: var(--ink); font-size: 12.5px; }
svg.chart .dot { fill: var(--muted); stroke: var(--panel); stroke-width: 2; }
svg.chart .dot.good { fill: var(--good); } svg.chart .dot.bad { fill: var(--bad); }
svg.chart .rng.good { stroke: var(--good); opacity: .8; } svg.chart .rng.bad { stroke: var(--bad); opacity: .8; }
svg.chart g:hover .lbl { font-weight: 700; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--muted); }
.pill.good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
details.help { border-top: 1px solid var(--line); padding-top: 12px; }
details.help summary { cursor: pointer; color: var(--accent); font-weight: 650; }
dl.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px 22px; margin: 12px 0 0; }
dl.terms dt { font-weight: 650; }
dl.terms dd { margin: 0; color: var(--muted); font-size: 13.5px; }

/* 슈팅 핫·콜드 코트 */
.hotcourt { display: flex; flex-direction: column; gap: 10px; max-width: 520px; width: 100%; margin: 0 auto; }
.court { width: 100%; height: auto; display: block; border-radius: 14px; background: #cfd5dd; border: 1px solid var(--line); }
.court .z { stroke: #fff; stroke-width: 1.5; }
.court .z.none { fill: #d4d9e0; }
.h1 { fill: #4a7fd4; background: #4a7fd4; } .h2 { fill: #a9c8f0; background: #a9c8f0; } .h3 { fill: #ece7df; background: #ece7df; }
.h4 { fill: #f5a3a5; background: #f5a3a5; } .h5 { fill: #d93a3d; background: #d93a3d; }
.court .cl { fill: none; stroke: #fff; stroke-width: 3; opacity: .95; }
.court .zt { fill: #121826; font: 800 19px var(--font); text-anchor: middle; letter-spacing: -0.02em; }
.hotlegend { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.hotlegend .bar { display: flex; border-radius: 6px; overflow: hidden; }
.hotlegend .bar i { width: 30px; height: 12px; }
svg.chart tspan.dim { fill: var(--muted); }

@media (max-width: 760px) {
  .hero .ball { width: 96px; height: 96px; bottom: 34px; opacity: .95; }
}
@media (max-width: 640px) {
  .bar { padding: 8px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  main { padding: 16px 14px 40px; }
  .wrap { padding: 0 14px; }
  h1 { font-size: 24px; }
  .hero { padding: 40px 0 100px; }
  .hero .sub { font-size: 15.5px; }
  .hero .court-bg { width: 520px; right: -140px; }
  .banner { padding: 22px 20px; border-radius: 20px; }
  .banner h1 { font-size: 25px; }
  .phead.banner { gap: 16px; }
  .phead .av.l { width: 68px; height: 68px; font-size: 30px; }
  .podium { gap: 8px; }
  .pod { padding: 18px 6px 14px; }
  .pod .av.m { width: 48px; height: 48px; font-size: 20px; }
  .pod b { font-size: 15px; } .pod .war { font-size: 21px; }
  .card { padding: 16px; border-radius: 16px; }
  .tile .v { font-size: 26px; }
  th, td { padding: 8px 9px; font-size: 13.5px; }
  .hide-sm { display: none; }
}
[hidden] { display: none !important; }

/* 툴팁: 즉시 뜨는 말풍선 */
.tip { position: fixed; z-index: 50; max-width: 280px; background: #121826; color: #fff; font-size: 12.5px; line-height: 1.5; padding: 7px 11px;
  border-radius: 9px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.term[data-tip] { text-decoration: underline dotted; text-decoration-color: rgba(18,24,38,.45); text-underline-offset: 3px; cursor: help; }
.term[data-tip] button, button.term[data-tip] { cursor: help; }
.court .zt, .court .cl { pointer-events: none; }
svg.chart [data-tip], .court [data-tip] { cursor: default; }

/* 팀 */
.cup { display: inline-block; width: 15px; height: 15px; margin-left: 5px; color: #e0a100; vertical-align: -2px; }
.cup svg { width: 100%; height: 100%; }
.cbtn { font: inherit; font-size: 12.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 4px 11px; cursor: pointer; display: inline-block; white-space: nowrap; }
.cbtn:hover { text-decoration: none; filter: brightness(.96); }
.cbtn.on { background: var(--accent); color: #fff; }
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.tcard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; background: var(--soft); }
.tcard b { font-size: 16px; letter-spacing: -0.02em; padding-right: 22px; }
.tcard .x { position: absolute; top: 6px; right: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 7px; border-radius: 6px; }
.tcard .x:hover { background: var(--line); }
.tcard .tp { font-size: 12.5px; }
.mrow { display: grid; grid-template-columns: minmax(130px, 230px) 1fr; gap: 6px 18px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.ml { font-weight: 650; display: flex; flex-direction: column; }
.ml small { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mbars { display: flex; flex-direction: column; gap: 5px; }
.mb { position: relative; height: 24px; display: flex; align-items: center; background: var(--soft); border-radius: 7px; overflow: hidden; }
.mb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; opacity: .85; }
.mb b { position: relative; z-index: 1; padding-left: 9px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 0 4px var(--panel), 0 0 2px var(--panel); }
.mb.best b { font-weight: 850; }
.row label.seg { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.row label.seg:has(input:checked) { background: var(--accent-soft); border-color: var(--hot); }
.seg input { accent-color: var(--hot); margin: 0; }
svg.chart text.star { fill: #e0a100; font-size: 13px; }
.dim2 { opacity: .7; font-size: .85em; }
@media (max-width: 640px) { .mrow { grid-template-columns: 1fr; gap: 4px; } }
#cmp h3.wk { margin: 16px 0 0; }

/* 비교 탭·구단 선택 */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; font-weight: 650; font-size: 14px; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; cursor: pointer; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--hot); }
.chip { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.chip.on { background: var(--accent-soft); border-color: var(--hot); color: var(--accent); }
.picker select { max-width: 100%; }
.h2h { margin: 0; padding: 10px 14px; background: var(--soft); border-radius: 12px; line-height: 1.8; }
.legend2 { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend2 i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
svg.chart .pt { cursor: default; }

/* 전체 기록 표 */
.dtable { font-size: 13.5px; }
.dtable th, .dtable td { white-space: normal; vertical-align: top; }
.dtable thead th { text-align: left; background: var(--soft); position: sticky; top: 0; }
.dtable tr.grp th { background: color-mix(in srgb, var(--hot) 10%, var(--soft)); color: var(--ink); font-size: 13px; letter-spacing: .02em; padding: 7px 12px; }
.dtable th.lab { font-weight: 600; color: var(--ink); background: var(--panel); min-width: 150px; }
.dtable th.lab small, .dtable td small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; line-height: 1.4; margin-top: 2px; }
.dtable td { font-variant-numeric: tabular-nums; min-width: 110px; }
.dtable td.best { font-weight: 800; }
.linkbtn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
svg.chart .pick { cursor: pointer; }
svg.chart .pick:hover + .pt, svg.chart .pt:has(+ .pick:hover) { stroke-width: 3; }

/* 예측 · 슛 */
.rcell { display: inline-flex; align-items: center; gap: 8px; }
.rbar .rg { stroke: var(--red); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.rbar .z0 { stroke: var(--line); }
.rbar circle { fill: var(--red); }
.gcourt rect { stroke: rgba(255,255,255,.55); stroke-width: .8; }
ol.shots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
ol.shots li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
ol.shots li::before { content: counter(s); position: absolute; left: 14px; top: 12px; font-weight: 850; font-size: 18px; color: var(--accent); }
.sh-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-top .sw { margin-left: auto; font-weight: 850; color: var(--good); font-size: 17px; }
.sh-wp { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.sh-wp i { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.sh-wp i b { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #f26b6e, #15803d); }
ol.shots .dim { font-size: 13px; }

/* 선수 비교 */
.cmpsearch { margin: 0; max-width: 460px; flex: none; }
.cmpsearch input { width: 100%; padding: 11px 16px; border-radius: 999px; }
.tcard .big { font-size: 24px; font-weight: 850; letter-spacing: -0.03em; }
.tcard select { max-width: 100%; margin-top: 4px; }
.tcard label.note { display: flex; flex-direction: column; gap: 2px; }
.mb .pc { font-weight: 500; color: var(--muted); font-size: 11.5px; margin-left: 6px; }
#cmpout h3.wk { margin: 16px 0 0; }

/* 팀 스타일: 가운데 선이 리그 평균, 막대는 평균에서 벗어난 만큼 */
#style h3.wk { margin: 18px 0 0; }
.stags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.stag { display: flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.stag b { font-weight: 750; }
.stag small { color: var(--muted); font-size: 12px; }
.sbar { position: relative; height: 12px; background: var(--soft); border-radius: 6px; }
.sbar::after { content: ""; position: absolute; left: calc(50% - 1px); top: -3px; bottom: -3px; width: 2px; background: var(--muted); border-radius: 1px; }
.sbar i { position: absolute; top: 0; bottom: 0; min-width: 2px; background: var(--red); border-radius: 0 6px 6px 0; }
.sbar i.lo { background: #4f8cff; border-radius: 6px 0 0 6px; }
.st { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-top: 5px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.st b { font-size: 14px; }
.st span { color: var(--muted); }

/* ===== 선수 페이지 상단: 프로필 카드 ===== */
.phero { position: relative; overflow: hidden; border-radius: 24px; color: var(--on); box-shadow: var(--shadow);
  background: radial-gradient(90% 120% at 100% 0%, #24407a 0%, transparent 55%), linear-gradient(135deg, var(--navy), var(--navy2)); }
.pnum { position: absolute; right: 34%; top: -30px; font-size: clamp(180px, 26vw, 340px); line-height: 1; font-weight: 900; letter-spacing: -0.06em; color: color-mix(in srgb, var(--f) 5.5%, transparent); pointer-events: none; user-select: none; }
.pcore { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 34px 34px 26px; }
.pteam { font-size: 14px; font-weight: 650; color: color-mix(in srgb, var(--f) 72%, transparent); letter-spacing: .02em; }
.pnamerow { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.pname { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 900; margin: 0; color: var(--on); }
.pno { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--hot); }
.pen { color: color-mix(in srgb, var(--f) 50%, transparent); font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.favwrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.favbtn { font: inherit; font-size: 14.5px; font-weight: 700; color: var(--on); background: color-mix(in srgb, var(--f) 12%, transparent); border: 1px solid color-mix(in srgb, var(--f) 35%, transparent); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.favbtn:hover { background: color-mix(in srgb, var(--f) 20%, transparent); }
.favbtn.saved { background: var(--hot); border-color: var(--hot); color: #fff; }
.favbtn:disabled { opacity: .6; cursor: wait; }
.favmsg { color: color-mix(in srgb, var(--f) 78%, transparent) !important; }
.favpop { margin-top: 12px; max-width: 460px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--hot); background: rgba(15,27,45,.07); border-radius: 12px; font-size: 14px; }
.pbio { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 640px; }
.pbio > div { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--f) 16%, transparent); min-width: 0; }
.pbio dt { flex: none; width: 44px; color: color-mix(in srgb, var(--f) 55%, transparent); font-size: 13px; }
.pbio dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pbio > div:last-child:nth-child(odd), .pbio > div:nth-last-child(1) { grid-column: auto; }
.pbio > div:has(dt:where(:lang(ko))) { }
.pbio .dim { color: color-mix(in srgb, var(--f) 55%, transparent); font-weight: 500; }
.pstrip { position: relative; background: rgba(0,0,0,.28); border-top: 1px solid color-mix(in srgb, var(--f) 12%, transparent); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sr { display: grid; grid-template-columns: 120px repeat(6, minmax(72px, 1fr)); align-items: center; gap: 8px; padding: 13px 34px; min-width: 640px; }
.sr + .sr { border-top: 1px solid color-mix(in srgb, var(--f) 10%, transparent); }
.sr .sl { font-weight: 700; font-size: 13.5px; color: color-mix(in srgb, var(--f) 75%, transparent); }
.sr span:not(.sl) { display: flex; flex-direction: column; }
.sr i { font-style: normal; font-size: 11.5px; color: color-mix(in srgb, var(--f) 50%, transparent); }
.sr b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sr span:last-child b { color: #ff9a9c; }
.row.share { margin-top: -6px; }

/* 공식 수상 이력: 등급과 별도로, 통산 이력을 표시 */
.pawards { position: relative; margin: 0 34px; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--f) 18%, transparent); }
.pawards-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pawards-head h2 { margin: 0; color: var(--on); font-size: 15px; font-weight: 750; }
.pawards-head > span { color: #b7c3d8; font-size: 12px; }
.pawards-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.pawards-highlights li { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 180px; padding: 12px 16px; background: color-mix(in srgb, var(--f) 4.5%, transparent); border: 1px solid color-mix(in srgb, var(--f) 20%, transparent); border-radius: 10px; }
.pawards-highlights span { font-size: 14px; font-weight: 650; }
.pawards-highlights b { font-size: 24px; font-weight: 800; color: #ff9a9c; font-variant-numeric: tabular-nums; }
.pawards-all { margin-top: 10px; }
.pawards-all summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; cursor: pointer; color: #d4deef; font-size: 13px; list-style: none; }
.pawards-all summary::-webkit-details-marker { display: none; }
.pawards-all summary::after { content: '+'; margin-left: 8px; font-size: 20px; }
.pawards-all[open] summary::after { content: '−'; }
.pawards-all summary:hover { color: var(--on); }
.pawards-all summary:focus-visible { outline: 2px solid #ff9a9c; outline-offset: 3px; border-radius: 4px; }
.pawards-hide, .pawards-all[open] .pawards-show { display: none; }
.pawards-all[open] .pawards-hide { display: inline; }
.pawards-total { color: #b7c3d8; font-variant-numeric: tabular-nums; }
.pawards-history { margin-top: 6px; }
.pawards-season { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--f) 13%, transparent); }
.pawards-season h3 { margin: 0; color: var(--on); font-size: 18px; font-variant-numeric: tabular-nums; }
.pawards-season h3 span { display: block; margin-top: 3px; color: #b7c3d8; font-size: 11px; font-weight: 500; }
.pawards-season ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pawards-season li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; overflow-wrap: anywhere; }
.pawards-category { color: #b7c3d8; font-size: 12px; min-width: 110px; }
.pawards-season strong { font-size: 14px; font-weight: 600; }
.pawards-note { color: #b7c3d8; font-size: 12px; line-height: 1.8; margin: 14px 0 0; }
.pawards-note a { color: #e4ebf6; text-decoration: underline; text-underline-offset: 3px; }
.pawards-empty { color: #d4deef; font-size: 14px; }
@media (max-width: 640px) {
  .pawards { margin: 0 20px; padding: 20px 0; }
  .pawards-highlights { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .pawards-highlights li { min-width: 0; gap: 12px; }
  .pawards-highlights span { overflow-wrap: anywhere; }
  .pawards-season { grid-template-columns: 1fr; gap: 12px; }
  .pawards-season h3 span { display: inline; margin-left: 6px; }
  .pawards-season li { align-items: start; flex-direction: column; }
}

/* 시즌 등급 칸 */
.pgrade { align-self: start; background: color-mix(in srgb, var(--f) 8%, transparent); border: 1px solid color-mix(in srgb, var(--f) 18%, transparent); border-radius: 18px; padding: 16px; backdrop-filter: blur(6px); }
.gh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gh b { font-size: 14.5px; letter-spacing: -0.01em; }
.gh select { background: color-mix(in srgb, var(--f) 12%, transparent); color: var(--on); border-color: color-mix(in srgb, var(--f) 28%, transparent); padding: 4px 8px; border-radius: 8px; font-size: 13px; }
.gh select option { color: #16233b; }
.glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gi { width: 100%; display: flex; align-items: center; justify-content: space-between; font: inherit; color: var(--on); background: color-mix(in srgb, var(--f) 7%, transparent); border: 1px solid transparent; border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: left; }
.gi:hover:not(:disabled) { background: color-mix(in srgb, var(--f) 14%, transparent); }
.gi.on { border-color: var(--hot); background: rgba(15,27,45,.1); }
.gi:disabled { cursor: default; opacity: .55; }
.gn { font-weight: 650; font-size: 15px; }
.gl { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 900; font-size: 19px; background: #54607a; color: #fff; }
.gl.gS { background: #d92d32; }
.gl.gA { background: #f08c2e; }
.gl.gB { background: #ecc54e; color: #3b2a05; }
.gl.gC { background: #8b93a1; }
.gl.gD { background: #565e6c; }
.gl.none { background: transparent; border: 1px dashed color-mix(in srgb, var(--f) 35%, transparent); color: color-mix(in srgb, var(--f) 50%, transparent); font-size: 16px; }
.gfoot { margin: 10px 0 0; font-size: 12px; color: color-mix(in srgb, var(--f) 55%, transparent); }
.gshort { margin: 0; padding: 14px 4px; font-size: 14px; color: color-mix(in srgb, var(--f) 80%, transparent); line-height: 1.6; }
.gdetail { margin-top: 12px; padding: 14px; background: rgba(0,0,0,.28); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.gdh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gdh .gl { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
.gnum { display: flex; flex-direction: column; gap: 2px; }
.gnum b { font-size: 28px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gdetail .dim { color: color-mix(in srgb, var(--f) 55%, transparent); }
.gdetail .note { color: color-mix(in srgb, var(--f) 60%, transparent); font-size: 12px; }
.gcols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gcols > div { display: flex; flex-direction: column; background: color-mix(in srgb, var(--f) 6%, transparent); border-radius: 10px; padding: 8px 10px; }
.gcols b { font-size: 20px; font-weight: 800; }
.gdl { display: flex; justify-content: space-between; font-size: 11px; gap: 6px; }
svg.dist { width: 100%; height: auto; display: block; margin-top: 4px; }
svg.dist rect { fill: color-mix(in srgb, var(--f) 25%, transparent); }
svg.dist rect.me { fill: var(--red); }
svg.dist line { stroke: color-mix(in srgb, var(--f) 30%, transparent); }
svg.dist circle { fill: var(--red); stroke: #fff; stroke-width: 2; }

/* 머리말 계정, 로그인, 관심 선수 */
.acct { display: flex; align-items: center; gap: 6px; }
.acct a { color: color-mix(in srgb, var(--f) 85%, transparent); font-weight: 650; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--f) 10%, transparent); }
.acct a:hover { text-decoration: none; background: color-mix(in srgb, var(--f) 18%, transparent); }
.acct a[aria-current=page] { background: color-mix(in srgb, var(--f) 20%, transparent); color: var(--on); }
.lnk { font: inherit; font-size: 13px; background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 4px; }
.acct .lnk { color: color-mix(in srgb, var(--f) 70%, transparent); }
.card.narrow { max-width: 560px; width: 100%; margin: 0 auto; }
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 650; }
.fld input { font-size: 16px; padding: 12px 14px; }
.ferr { min-height: 1.4em; margin: 6px 0 8px; color: var(--bad); font-size: 13.5px; }
.btn.fill { background: var(--accent); color: #fff; }
.btn.fill:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: wait; }
.samplebox { border: 1px dashed var(--muted); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.samplebox b { color: var(--ink); margin-right: 6px; }
.samplebox code { background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.ok { border-left: 4px solid #1f6f5c; background: color-mix(in srgb, #1f6f5c 12%, var(--panel)); padding: 12px 14px; border-radius: 0 10px 10px 0; }
.terms-text { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.terms-text p { margin: 0; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.favrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.favrow:last-child { border-bottom: 0; }
.favr { display: flex; align-items: center; gap: 14px; }
.favr .war { font-size: 17px; font-variant-numeric: tabular-nums; }
.empty .btn { display: inline-block; }

@media (max-width: 900px) {
  .pcore { grid-template-columns: 1fr; padding: 26px 22px 20px; }
  .pnum { right: 4%; }
  .pgrade { order: 2; }
  .glist { flex-direction: row; flex-wrap: wrap; }
  .glist li { flex: 1 1 calc(50% - 6px); }
  .sr { padding: 12px 22px; }
}
@media (max-width: 640px) {
  .pbio { grid-template-columns: 1fr; }
  .acct a { padding: 5px 10px; font-size: 13px; }
}
/* ===== 사진 없는 두 번째 디자인: 이름과 숫자가 화면의 기준 ===== */
.home-hero-inner { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.home-hero-art > span { display: none; }
.home-hero-art .court-bg { opacity: .08; width: 390px; top: 18px; left: 40px; }
.home-player { border-radius: 8px; box-shadow: none; }
.home-player:first-child { border-top: 3px solid var(--navy2); }
.home-player-id, .home-player:first-child .home-player-id { height: auto; min-height: 42px; padding: 20px 20px 0; background: transparent; color: var(--ink); flex-direction: row; align-items: center; gap: 10px; }
.home-player:first-child .home-player-id { padding-top: 18px; }
.home-player-rank { font-size: 11px; font-weight: 750; color: var(--muted); }
.home-player-team { font-size: 12px; font-weight: 500; color: var(--muted); }
.home-player-body { padding: 18px 20px 0; }
.home-player h3 { font-size: 24px; margin-top: 8px; line-height: 1.35; }
.home-war { margin-top: 26px; }
.home-war b { font-size: 48px; letter-spacing: -.05em; }
.home-player-sample { margin-top: 16px; margin-bottom: 22px; }
.home-standings-body { grid-template-columns: .9fr 2.4fr; }
.home-standings-body aside h3 { font-size: 27px; }
.home-section { margin-top: 52px; }
.home-method .terms { grid-template-columns: 190px minmax(0,1fr); gap: 18px 28px; }
.home-method .terms dd { max-width: 70ch; }

/* 비교는 760px 안에서 이름·기준·숫자를 함께 읽는다. */
.compare-banner { padding: 28px 32px; background: var(--navy); box-shadow: none; }
.compare-banner .eyebrow { color: #bfcbdc; letter-spacing: 0; font-size: 12px; }
.compare-banner h1 { margin-top: 7px; font-size: 40px; }
.player-compare-shell { padding: 28px 32px; box-shadow: none; }
.compare-picker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.compare-picker h2 { font-size: 21px; }
.compare-picker h2::before { display: none; }
.compare-picker .search { flex: 1 1 280px; max-width: 380px; margin: 0; }
.compare-picker input { width: 100%; border-radius: 6px; }
.compare-common-period { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 8px; font-size: 13px; font-weight: 650; }
.compare-common-period select { font-size: 13px; min-width: 190px; }
.comparison-content { width: 100%; max-width: 760px; margin: 12px auto 0; }
.comparison-content * { text-shadow: none; }
.compare-subjects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; background: var(--panel); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.compare-subject { position: relative; min-width: 0; padding: 25px 22px; }
.compare-subject:nth-child(even) { border-left: 1px solid var(--line); }
.compare-subject:nth-child(n+3) { border-top: 1px solid var(--line); }
.compare-subject > span { display: block; font-size: 12px; color: var(--muted); }
.compare-subject h3 { font-size: clamp(20px, 2.8vw, 30px); margin: 10px 0 8px; line-height: 1.3; letter-spacing: -.04em; padding-right: 10px; overflow-wrap: anywhere; }
.compare-subject h3 a { color: var(--ink); }
.compare-subject p { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.compare-subject > a { font-size: 12px; }
.compare-subject label { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.compare-subject select { width: 100%; max-width: 250px; font-size: 12px; padding: 7px 8px; border-radius: 5px; }
.compare-remove { position: absolute; right: 10px; top: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 30px; height: 30px; font: 22px var(--font); }
.compare-reference h3 { font-weight: 650; }
.compare-context { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 16px 0; }
.compare-basis { margin-top: 18px; }
.compare-basis label { font-size: 12px; }
.compare-view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.compare-view-controls > span { color: var(--muted); }
.compare-view-controls label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.compare-view-controls input { accent-color: var(--accent); width: 15px; height: 15px; }
.metric-panel { width: 100%; max-width: 760px; background: var(--panel); }
.metric-panel-title { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.metric-row { padding: 26px 0 20px; border-bottom: 1px solid var(--line); }
.metric-heading { margin-bottom: 20px; text-align: center; }
.metric-heading h4 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.metric-heading p { margin: 6px auto 0; max-width: 48ch; padding: 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.metric-values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 0; }
.metric-value { position: relative; display: flex; align-items: center; flex-direction: column; min-width: 0; padding: 0 16px; }
.metric-value:nth-child(even) { border-left: 1px solid var(--line); }
.metric-name { font-size: 14px; font-weight: 650; text-align: center; overflow-wrap: anywhere; }
.metric-period { font-size: 11px; color: var(--muted); margin-top: 4px; }
.metric-number { font-size: 34px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.3; margin-top: 9px; white-space: nowrap; }
.metric-number small { font-size: 12px; font-weight: 500; margin-left: 5px; color: var(--muted); letter-spacing: 0; }
.metric-best .metric-number { font-weight: 850; }
.metric-missing { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.metric-edge { font-size: 10px; color: var(--muted); margin-top: 4px; }
.metric-difference { font-size: 11px; text-align: center; margin: 17px 0 0; color: var(--muted); }
.metric-pctl { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.metric-pctl b { color: var(--ink); }
.with-percentiles .metric-pctl { display: block; }
.metric-bar { position: relative; display: none; width: 128px; max-width: 100%; height: 6px; background: var(--soft); margin: 13px 0 2px; border-radius: 2px; }
.metric-bar i { position: absolute; top: 0; height: 6px; background: var(--muted); border-radius: 2px; }
.metric-bar b { position: absolute; height: 10px; top: -2px; border-left: 1px solid var(--ink); opacity: .4; }
.with-bars .metric-bar { display: block; }
.compare-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.compare-more > summary { cursor: pointer; font-size: 14px; font-weight: 650; padding: 6px 0; }
.compare-more > .metric-panel { margin-top: 20px; }
.compare-more .tablebox { margin-top: 16px; }
.compare-more .wk { margin-top: 18px; }
.comparison-full td, .comparison-full th { font-size: 12px; white-space: normal; min-width: 100px; }
.comparison-full small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.compare-empty { padding: 50px 20px; text-align: center; }
.compare-empty h3 { font-size: 24px; margin: 0 0 12px; }
.compare-empty p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* 슈팅 실력 추정 / 실제 성공률 / 코트는 별개의 구역 */
.shooting-section { box-shadow: none; gap: 18px; padding: 28px 30px; }
.shoot-section-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: start; }
.shoot-section-head h2 { font-size: 24px; }
.shoot-section-head h2::before { display: none; }
.shoot-section-head .sub { font-size: 13px; margin-top: 8px; }
.shoot-period, #shot-actual-season { color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; }
.shoot-estimates { max-width: 760px; width: 100%; margin: 0 auto; }
.shoot-estimates > h3 { font-size: 13px; color: var(--muted); padding: 18px 0 12px; margin: 0; border-bottom: 1px solid var(--line); }
.shoot-estimates > .note { padding-top: 12px; font-size: 12px; }
.shoot-estimate { padding: 22px 0; border-bottom: 1px solid var(--line); }
.shoot-estimate h4 { margin: 0 0 9px; font-size: 16px; }
.shoot-estimate-number { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.shoot-estimate-number b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.3; }
.shoot-estimate-number span { font-size: 12px; color: var(--muted); }
.shoot-estimate-number small { font-size: 10px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.shoot-estimate p { margin: 9px 0; font-size: 12px; color: var(--muted); line-height: 1.8; font-variant-numeric: tabular-nums; }
.shoot-estimate p span { margin-left: 12px; }
.shoot-conclusion { display: block; font-size: 12px; font-weight: 600; }
.shoot-insufficient > b { font-size: 20px; color: var(--muted); font-weight: 600; }
.shoot-chart-detail { max-width: 760px; width: 100%; margin: 8px auto 0; }
.shoot-chart-detail > summary { font-size: 13px; color: var(--accent); font-weight: 650; cursor: pointer; }
.shoot-chart-detail > .note { margin: 14px 0; }
.shoot-chart-detail #schart { margin-top: 12px; }
.shoot-season-control { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.shoot-actual-table th[scope=row] { background: transparent; color: var(--ink); font-weight: 600; }
.shoot-actual-table td, .shoot-actual-table th { font-size: 13px; }
.shoot-actual-table tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 760px) {
  .home-player-id, .home-player:first-child .home-player-id { padding: 16px 14px 0; flex-wrap: wrap; gap: 4px 8px; }
  .home-player-body { padding: 15px 14px 0; }
  .home-player h3 { font-size: 21px; }
  .home-war b { font-size: 39px; }
  .home-standings-body { grid-template-columns: 1fr; }
  .home-method .terms { grid-template-columns: 1fr; gap: 8px; }
  .home-method .terms dd { margin-bottom: 12px; }
  .player-compare-shell { padding: 20px 16px; }
  .compare-banner h1 { font-size: 32px; }
  .compare-subject { padding: 20px 12px; }
  .compare-subject h3 { font-size: 22px; }
  .metric-number { font-size: 28px; }
  .metric-name { font-size: 12px; }
  .metric-value { padding: 0 10px; }
  .shooting-section { padding: 22px 18px; }
  .shoot-section-head h2 { font-size: 22px; }
  .shoot-estimate p span { display: block; margin-left: 0; }
  .shoot-estimate-number b { font-size: 30px; }
}

/* 휴대폰: 메뉴는 글자가 잘리지 않게 한 줄로 옆으로 넘기고, 로그인은 오른쪽 위에 둔다 */
@media (max-width: 900px) {
  .acct { order: 1; margin-left: auto; }
  .nav { order: 2; flex: 1 0 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px; margin: 0 -4px; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; white-space: nowrap; }
  .bar > .search { order: 3; }
}


/* ===== 하얀 코트 (2026-11-14): 흰 바탕, 코트 라인이 사이트의 정체성 =====
   위 규칙은 어두운 면 위에 흰 글씨로 만들어졌다. 글씨·선은 전경색 변수(--f, --on)로 바꿔 두었고,
   여기서 바탕을 흰색으로 돌린다. 다시 어둡게 하려면 --f·--on 을 #fff 로, 아래 면 규칙을 지운다. */
:root { --bg: #fff; --panel: #fff; --soft: #f5f7fa; --ink: #0f1b2d; --muted: #586376; --line: #e2e6ed;
  --f: #0f1b2d; --on: #0f1b2d; --key: rgba(15,27,45,.07); --shadow: none; --accent-soft: #eef1f5; }
body { background: #fff; }
.eyebrow { display: none; }

header.top { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.tag { border-color: var(--line); }
.nav a { border-radius: 0; padding: 6px 10px; border-bottom: 2px solid transparent; }
.nav a[aria-current=page] { background: none; border-bottom-color: var(--hot); }
.bar .search input { background: var(--soft); border-color: var(--line); }
.foot { background: var(--soft); color: var(--muted); border-top: 1px solid var(--line); }
.card { border-radius: 12px; box-shadow: none; }

/* 코트 그림: 선은 잉크색 옅게, 키(페인트 구역)는 옅은 주황 */
.court-bg { color: rgba(15,27,45,.17); }
.court-bg path:first-of-type { fill: var(--key); }
.banner .court-bg, .home-hero-art .court-bg { opacity: 1; }

.banner, .compare-banner { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; color: var(--ink); }
.banner .btn { border: 1px solid var(--line); background: var(--soft); }

.home-hero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.home-season-line { color: var(--muted); }
.home-season-tag { border-color: var(--line); color: var(--ink); }
.home-hero-copy > p:not(.home-hero-note) { color: var(--muted); }
.home-hero-note { color: var(--muted); }
.home-search-row input { background: #fff; color: var(--ink); border: 1px solid #c9d1dd; }
.home-search-icon { color: var(--ink); }
.home-team-jump { border-color: #c9d1dd; }
.home-team-jump:hover { background: var(--soft); }
.home-comparison { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.home-more-nav[open] > a { background: #fff; border-color: var(--line); color: var(--ink); }

/* 선수 페이지 상단: 하프코트 도면. 키 안에 등번호를 주황 외곽선으로 칠한다 */
.phero { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.pcourt { position: absolute; top: -8px; right: 120px; width: min(600px, 62%); pointer-events: none; }
.pcourt .court-bg { position: static; display: block; width: 100%; height: auto; }
.pcourt .pnum { position: absolute; left: 33.6%; width: 32.8%; right: auto; top: 0; height: 57%; display: grid; place-items: center;
  font-size: clamp(84px, 10.5vw, 148px); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--hot); }
.pstrip { background: var(--soft); }
@media (max-width: 860px) { .pcourt { right: -60px; opacity: .6; } }

/* 어두운 면용으로 정해 둔 연한 글자색을 흰 바탕용으로 */
.pgrade { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(15,27,45,.04); backdrop-filter: none; }
.sr span:last-child b, .pawards-highlights b { color: var(--accent); }
.pawards-head > span, .pawards-total, .pawards-season h3 span, .pawards-category, .pawards-note, .pawards-empty { color: var(--muted); }
.pawards-note a, .pawards-all summary { color: var(--ink); }
.pawards-all summary:focus-visible { outline-color: var(--hot); }

/* 코트 선은 위쪽에서만 보이고 프로필 글자 영역 앞에서 사라진다. 등번호는 키 안에서만 보인다 */
.pcourt { height: 335px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 58%, transparent 96%); mask-image: linear-gradient(#000 58%, transparent 96%); }
.pno { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: var(--hot); }
.home-more-nav { color: var(--muted); }

/* ===== 검색 목록: 이름 위주, 여백 넉넉히. 같은 이름이 여럿일 때만 팀·활동 연도를 둘째 줄에 ===== */
#qlist, #hqlist, #cqlist { padding: 8px; }
#qlist li a, #hqlist li a, #cqlist li a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; }
.sn { font-weight: 700; font-size: 15px; }
#qlist li a .sd, #hqlist li a .sd, #cqlist li a .sd { font-size: 12.5px; color: var(--muted); white-space: normal; }

/* ===== 팀 명단에서 고르기 (선수 비교) ===== */
.roster { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.roster > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.rost { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.rost-teams { display: flex; flex-wrap: wrap; gap: 8px; }
.rtm { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.rtm:hover { background: var(--soft); }
.rtm.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rost-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rpl { width: 100%; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--ink); }
.rpl b { font-weight: 700; }
.rpl span { font-size: 12.5px; color: var(--muted); }
.rpl:hover:not(:disabled) { border-color: var(--hot); background: var(--accent-soft); }
.rpl:disabled { opacity: .55; cursor: default; }

/* 팀 비교: 고른 팀의 주요 선수 */
.roster-line { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.roster-line a { color: var(--ink); font-weight: 600; }
.chips-inline { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.roster-line:empty { display: none; }
.compare-subject .roster-line { font-size: 12.5px; }

/* 비교 페이지 검색 목록도 머리말 검색과 같은 모양으로 */
#cqlist { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; list-style: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(15,27,45,.12); z-index: 30; text-align: left; }
#cqlist li a { color: var(--ink); border-radius: 8px; }
#cqlist li a:hover, #cqlist li a.on { background: var(--accent-soft); text-decoration: none; }
.sn { color: var(--ink); }

/* ===== 팀 색 (구단별 대표색, 근사값) ===== */
.tdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tc, #8a94a6); margin-right: 7px; flex: none; vertical-align: baseline; }
.metric-name .tdot { margin-right: 6px; transform: translateY(-1px); }
.rtm { display: inline-flex; align-items: center; gap: 0; text-align: left; border-left: 4px solid var(--tc, var(--line)); }
.rtm > span { display: flex; flex-direction: column; line-height: 1.3; }
.rtm b { font-weight: 700; }
.rtm small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rtm .tdot { display: none; }
.rtm.on { background: var(--tc); border-color: var(--tc); color: #fff; }
.rtm.on small { color: rgba(255,255,255,.85); }
.rost-list .rpl { border-left: 4px solid var(--tc, var(--line)); }
.compare-subject[style*="--tc"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tc); }
.roster-line b .tdot { margin-right: 6px; }

/* ===== 비교의 핵심 기록: 한눈에 들어오게 ===== */
.metric-panel.compare-core { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px 8px; max-width: 820px; }
.compare-core .metric-panel-title { color: var(--ink); font-size: 15px; border-bottom: 2px solid var(--ink); }
.compare-core .metric-row { border-bottom: 1px solid #d9dfe9; }
.compare-core .metric-row:last-child { border-bottom: 0; }
.metric-heading h4 { font-size: 17px; }
.metric-number { font-size: 38px; font-weight: 750; color: var(--ink); }
.metric-row:has(.metric-best) .metric-value:not(.metric-best) .metric-number { color: #6b7587; }   /* 우열이 있는 줄에서만 뒤진 쪽을 옅게 */
.metric-best .metric-number { font-weight: 900; color: var(--red); }
.metric-best { background: linear-gradient(var(--red-soft), var(--red-soft)) center / calc(100% - 20px) calc(100% + 10px) no-repeat; border-radius: 10px; }
.metric-edge { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 2px 10px; margin: 6px 0 6px; }
.metric-name { font-weight: 700; color: var(--ink); }


/* ===== 통일 (2026-11-15): 홈의 디자인 언어를 모든 화면에 ===== */
.bar { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.nav { margin-left: 18px; }
body[data-page=home] .acct { margin-left: auto; }
.search { margin-left: auto; }
.acct { margin-left: 0; }
main { max-width: 1200px; padding: 30px 24px 72px; gap: 28px; }
body[data-page=home] main { max-width: none; padding: 0; gap: 0; }
.card { border-radius: 8px; }
h2 { font-size: 20px; }
.banner, .compare-banner { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 6px 0 30px; }
.banner h1 { font-size: clamp(32px, 4.2vw, 46px); letter-spacing: -.045em; line-height: 1.15; margin: 0 0 12px; }
.banner .sub { font-size: 16px; max-width: 46ch; }
.banner .court-bg { right: -10px; top: -34px; width: 360px; }

/* ===== 팀 배지 (구단 약칭, 팀 색). 로고를 쓰지 않는 동안의 표시 ===== */
.tmark { display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 7px; border-radius: 5px; background: var(--tc, #8a94a6); color: #fff;
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: -.01em; line-height: 1; flex: none; }

/* ===== 홈: 시즌 현황 (진행도 + 순위) ===== */
.home-status { background: var(--soft); border-bottom: 1px solid var(--line); }
.hs-inner { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; padding-top: 30px; padding-bottom: 32px; }
.hs-prog h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.hs-big { display: flex; align-items: baseline; gap: 8px; }
.hs-big b { font-size: 56px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-big span { font-size: 16px; font-weight: 700; color: var(--accent); }
.hs-bar { height: 10px; background: #dfe4ec; border-radius: 5px; margin: 14px 0 12px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--red); border-radius: 5px; }
.hs-prog p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.hs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hs-head > span:first-child { font-size: 15px; font-weight: 700; }
.hs-note { font-size: 12.5px; color: var(--muted); }
.hs-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 0 28px; }
.hs-row { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto 58px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14.5px; }
.hs-row:hover { text-decoration: none; background: #fff; }
.hs-row b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-rk { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-rec { color: var(--muted); font-size: 13px; white-space: nowrap; }
.hs-wp { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-row.cut { border-bottom: 2px solid var(--hot); }
@media (max-width: 900px) {
  .hs-inner { grid-template-columns: 1fr; gap: 22px; }
  .hs-rows { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
}

/* ===== 선수 페이지 상단 다시 짜기: 이름은 작게, 사진 자리, 팀 배지 ===== */
.pname { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.045em; line-height: 1.1; }
.pteam { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pen { margin-top: 6px; font-size: 12.5px; }
.pbio { margin-top: 16px; }
.phero.has-photo .pcore { grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 30px; align-items: end; }
.phero.has-photo .pmain { align-self: start; }
.phero.has-photo .pgrade { align-self: start; }
.pphoto { margin: 0 0 -26px; align-self: end; position: relative; z-index: 1; }
.pphoto img { display: block; width: 210px; height: auto; max-width: 100%; }
/* 사진이 있으면 코트 도면은 사진 뒤에 서고, 키(페인트 구역)가 사진 뒤에 온다 */
.phero.has-photo .pcourt { right: auto; left: -150px; width: 560px; }
@media (max-width: 900px) {
  .phero.has-photo .pcore { grid-template-columns: 120px minmax(0, 1fr); }
  .phero.has-photo .pgrade { grid-column: 1 / -1; }
  .pphoto img { width: 120px; }
}

/* ===== 사진 자리 (비교 카드, 홈 선수 카드) + 팀 배지 위치 ===== */
.compare-subject .tmark, .home-player-team .tmark { margin-right: 8px; vertical-align: 1px; }
.compare-subject h3 .tmark { margin: 0 8px 0 0; vertical-align: 5px; }
.cphoto { position: absolute; right: 44px; top: 22px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--soft); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.hphoto { position: absolute; right: 16px; top: 16px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.home-player-body { position: relative; }

/* ===== 선수 페이지 상단 2차: 코트 도면·큰 등번호 제거, 사진은 이름 오른쪽에 크게 ===== */
.phero.has-photo .pcore { grid-template-columns: minmax(0, 1fr) 300px 320px; gap: 28px; align-items: end; }
.pphoto { margin: 0 0 -26px; align-self: end; }
.pphoto img { width: 300px; }
@media (max-width: 900px) {
  .phero.has-photo .pcore { grid-template-columns: minmax(0, 1fr) 150px; }
  .phero.has-photo .pgrade { grid-column: 1 / -1; }
  .pphoto img { width: 150px; }
}
.phero.has-photo .pbio { grid-template-columns: 1fr; column-gap: 0; }

/* ===== 구단 로고 (배지 자리). 로고가 없는 빌드는 약칭 배지를 쓴다 ===== */
.tlogo { width: 26px; height: 26px; object-fit: contain; flex: none; vertical-align: middle; }
.pteam .tlogo { width: 30px; height: 30px; }
.home-player-team .tlogo, .compare-subject .tlogo { margin-right: 8px; vertical-align: -7px; }
.compare-subject h3 .tlogo { width: 30px; height: 30px; margin: 0 8px 0 0; vertical-align: -6px; }

.home-team-table .tmark, .home-team-table .tlogo { margin-right: 10px; vertical-align: middle; }

/* ===== 선수 아바타 (모든 이름 옆), 사진이 없는 선수는 회색 사람 모양 ===== */
.pav { width: var(--s, 32px); height: var(--s, 32px); border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: #eef1f6; flex: none; vertical-align: middle; margin-right: 10px; }
.pav.none { display: inline-block; background: radial-gradient(circle at 50% 36%, #cbd3df 0 20%, transparent 21%), radial-gradient(ellipse at 50% 108%, #cbd3df 0 46%, transparent 47%), #eef1f6; }
.srow, .pcell, .hf-id, .rpl-row { display: flex; align-items: center; min-width: 0; }
.stxt, .pcell-t, .rpl-t { display: flex; flex-direction: column; min-width: 0; }
#qlist li a .pav, #hqlist li a .pav, #cqlist li a .pav { margin-right: 12px; }
.pcell .pav { margin-right: 12px; }
.home-forecast-row .pav { margin-right: 12px; }
li > .pav, .sh-top > .pav, .favrow .pav { margin-right: 8px; }
.home-forecast-feature h3 .pav { margin-right: 12px; vertical-align: -12px; }
.roster-line .pav, .home-team-table .pav, td a .pav { margin-right: 6px; }
.rpl-row .pav { margin-right: 12px; }
.rpl { padding: 8px 12px; }

/* ===== 선수 페이지 상단 3차: 등번호 제거, 사진 뒤는 그 팀의 대표색 ===== */
.phero.has-photo .pcore { align-items: stretch; }
.phero.has-photo .pmain, .phero.has-photo .pgrade { align-self: start; }
.pphoto { margin: -34px 0 -26px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #8a94a6) 82%, #fff) 0%, var(--tc, #8a94a6) 100%); }
.pphoto img { display: block; width: 300px; max-width: 100%; height: auto; }
@media (max-width: 900px) { .pphoto { margin: 0 -34px -26px 0; } .pphoto img { width: 150px; } }
.phero.has-photo .pphoto { align-self: stretch; }

/* ===== 팀 페이지: 로고, 선수 명단 ===== */
.fr-title { display: flex; align-items: center; gap: 16px; }
.fr-title .tlogo { width: 60px; height: 60px; margin: 0; }
.fr-title .tmark { min-width: 64px; height: 38px; font-size: 16px; border-radius: 8px; }
.fr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fr-pl { display: flex; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--tc, var(--line)); border-radius: 10px; background: #fff; color: var(--ink); height: 100%; }
.fr-pl:hover { text-decoration: none; border-color: var(--hot); border-left-color: var(--tc, var(--hot)); background: var(--accent-soft); }
.fr-pl b { font-weight: 700; }
.fr-pl .rpl-t span { font-size: 12.5px; color: var(--muted); }
.fr-pl .pav { margin-right: 12px; }
td .tcell { margin-right: 10px; }

/* ===== 같은 틀 (2026-11-15): 모든 화면의 제목 영역·섹션 제목·머리말이 홈과 같다 ===== */
body[data-page=home] .bar > .search { display: block; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.35; }
.compare-picker h2 { font-size: 22px; }
/* 제목 영역: 홈 히어로처럼 전체 폭 띠, 왼쪽에 큰 제목, 오른쪽에 비스듬한 코트 그림 */
main:has(> .banner:first-child) { padding-top: 0; gap: 0; }
main:has(> .banner:first-child) > :not(.banner) { margin-top: 28px; }
main:has(> .banner:first-child) > .banner + * { margin-top: 36px; }
.banner, .compare-banner { width: 100vw; margin-left: calc(50% - 50vw); padding: 40px max(24px, calc(50vw - 576px)) 42px; border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.banner h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.16; letter-spacing: -.05em; margin: 0 0 16px; font-weight: 800; }
.banner .sub { font-size: 16px; max-width: 46ch; margin: 0; }
.banner .court-bg { position: absolute; width: 490px; height: auto; max-width: none; top: -30px; right: max(0px, calc(50vw - 640px)); left: auto; transform: rotate(-12deg); opacity: 1; }
.banner .row.share { margin-top: 18px; }
@media (max-width: 760px) { .banner .court-bg { width: 300px; right: -60px; top: -20px; } .banner, .compare-banner { padding-top: 28px; padding-bottom: 30px; } }
.banner .court-bg { width: 440px; top: -6px; }

/* ===== 팀 페이지: 코트 그림 대신 그 팀의 색을 제목 영역 배경에 ===== */
.banner.team-banner { background: linear-gradient(115deg, var(--tc) 0%, color-mix(in srgb, var(--tc) 70%, #000) 100%); color: var(--tt); border-bottom: 0; }
.team-banner h1, .team-banner .sub, .team-banner .dim2 { color: var(--tt); }
.team-banner .sub { opacity: .92; }
.team-banner .dim2 { opacity: .75; }
.team-banner .court-bg { display: none; }
.team-banner .fr-title .tlogo, .team-banner .fr-title .tmark { background: #fff; border-radius: 14px; padding: 7px; box-sizing: border-box; width: 72px; height: 72px; margin: 0; }
.team-banner .fr-title .tmark { color: var(--tc); font-size: 17px; }
.team-banner .btn { background: color-mix(in srgb, var(--tt) 16%, transparent); color: var(--tt); border: 1px solid color-mix(in srgb, var(--tt) 45%, transparent); }
.team-banner .btn:hover { background: color-mix(in srgb, var(--tt) 26%, transparent); text-decoration: none; }

/* 보조색 띠: 주색이 비슷한 팀(파랑 계열)을 구별한다 */
.banner.team-banner { border-bottom: 10px solid var(--ta, transparent); padding-bottom: 36px; }
.pphoto { border-bottom: 10px solid var(--ta, transparent); }
.phero.has-photo .pphoto img { margin-bottom: 0; }

/* ===== 선수 페이지 상단 4차: 팀 페이지와 같은 틀의 팀 색 띠 ===== */
main:has(> .phero:first-child) { padding-top: 0; gap: 0; }
main:has(> .phero:first-child) > .pdetails { margin-top: 28px; }
.phero { width: 100vw; margin-left: calc(50% - 50vw); border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
  background: linear-gradient(115deg, var(--tc) 0%, color-mix(in srgb, var(--tc) 70%, #000) 100%); color: var(--tt); border-bottom: 10px solid var(--ta, transparent); }
.phero .pcore { max-width: 1200px; margin: 0 auto; padding: 40px 24px 36px; }
.phero.has-photo .pcore { padding-bottom: 0; align-items: end; }
.phero.has-photo .pmain { align-self: start; padding-bottom: 36px; }
.phero.has-photo .pgrade { align-self: start; margin-bottom: 36px; }
.phero .pphoto { margin: 0; background: none; border: 0; align-self: end; display: block; overflow: visible; }
.phero .pphoto img { display: block; width: 320px; max-width: 100%; height: auto; margin: 0 auto; }
.phero.has-photo .pcore { grid-template-columns: minmax(0, 1fr) 320px 320px; }
.phero .pteam, .phero .pname, .phero .pen { color: var(--tt); }
.phero .pteam { opacity: .92; }
.phero .pen { opacity: .72; }
.phero .pteam .tlogo, .phero .pteam .tmark { background: #fff; border-radius: 9px; padding: 4px; box-sizing: border-box; width: 34px; height: 34px; }
.phero .pteam .tmark { color: var(--tc); font-size: 11px; width: auto; min-width: 40px; }
.phero .favbtn { color: var(--tt); background: color-mix(in srgb, var(--tt) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tt) 45%, transparent); }
.phero .favbtn:hover { background: color-mix(in srgb, var(--tt) 26%, transparent); }
.phero .favbtn.saved { background: #fff; color: var(--tc); border-color: #fff; }
.phero .favmsg { color: var(--tt) !important; opacity: .85; }
.phero .pbio > div { border-top-color: color-mix(in srgb, var(--tt) 28%, transparent); }
.phero .pbio dt { color: color-mix(in srgb, var(--tt) 72%, transparent); }
.phero .pbio dd, .phero .pbio dd b { color: var(--tt); }
.phero .pbio .dim, .phero .pbio dd .dim { color: color-mix(in srgb, var(--tt) 68%, transparent); }
.phero .pgrade { background: #fff; color: var(--ink); border: 0; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.pdetails { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pdetails .pawards { margin: 0 24px; border-top: 0; }
@media (max-width: 900px) {
  .phero .pcore { padding: 28px 20px 28px; }
  .phero.has-photo .pcore { grid-template-columns: minmax(0, 1fr) 150px; padding-bottom: 0; }
  .phero.has-photo .pgrade { grid-column: 1 / -1; margin-bottom: 28px; }
  .phero .pphoto img { width: 150px; }
}
.phero.has-photo .pphoto { align-self: end; }

/* ===== 선수 페이지 상단 5차 (참고 이미지 구성): 큰 이름 + 반투명 정보 패널 + 띠 아래까지 닿는 큰 사진, 등급은 띠 아래 한 줄 ===== */
.phero .pcore, .phero.has-photo .pcore { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 44px 24px 44px; align-items: start; }
.phero.has-photo .pcore { grid-template-columns: minmax(0, 1fr) 440px; padding-bottom: 0; align-items: end; min-height: 560px; }
.phero.has-photo .pmain { align-self: center; padding-bottom: 44px; }
.phero .pname { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.05em; line-height: 1.04; margin: 10px 0 4px; }
.phero .pteam { font-size: 16px; }
.phero .pphoto { align-self: end; }
.phero .pphoto img { width: 440px; }
.ppanel { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 36px; max-width: 760px; padding: 22px 28px;
  background: color-mix(in srgb, var(--tt) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tt) 24%, transparent); border-radius: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ptl { font-size: 13px; font-weight: 700; margin: 0 0 14px; color: var(--tt); opacity: .8; letter-spacing: 0; }
.ptl::before { display: none; }
.pst { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 30px; }
.pst b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--tt); font-variant-numeric: tabular-nums; }
.pst span { display: block; font-size: 12px; margin-top: 4px; color: var(--tt); opacity: .72; }
.ppanel .pbio { margin: 0; grid-template-columns: minmax(0, 1fr); max-width: none; font-size: 14px; }
.ppanel .pbio > div { padding: 6px 0; }
.ppanel .pbio dt { width: 40px; }
/* 등급·수상·통산은 띠 아래 흰 상자 */
.pdetails > .pgrade { margin: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 22px 24px 20px; background: #fff; }
.pdetails .glist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pdetails .gdetail { background: var(--soft); color: var(--ink); }
.pdetails .gdetail .dim { color: var(--muted); }
.pdetails .gdetail .note { color: var(--muted); }
.pdetails .gh { margin-bottom: 14px; }
.pdetails .gfoot, .pdetails .gshort { color: var(--muted); }
.pdetails .gl.none { border-color: var(--line); color: var(--muted); }
.pdetails .gcols > div { background: #fff; }
svg.dist rect { fill: rgba(15,27,45,.18); }
@media (max-width: 900px) {
  .phero.has-photo .pcore { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 0; position: relative; }
  .phero.has-photo .pmain { align-self: start; padding-bottom: 24px; }
  .phero.has-photo .pteam, .phero.has-photo .pnamerow, .phero.has-photo .pen { padding-right: 150px; }
  .phero .pphoto { position: absolute; right: 12px; top: 18px; align-self: auto; }
  .phero .pphoto img { width: 150px; }
  .ppanel { grid-template-columns: 1fr; gap: 16px; }
  .pst { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdetails .glist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 홈: 예측(메인 모델)이 맨 위. 히어로 오른쪽에 예측 카드, 바로 아래에 예상 상위 선수 ===== */
.home-hero-inner { grid-template-columns: minmax(0, 1fr) 430px; gap: 48px; }
.home-pred { align-self: center; min-width: 0; }
.hp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; box-shadow: 0 12px 40px rgba(15,27,45,.12); }
.hp-tag { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 12px; }
.hp-id { display: flex; align-items: center; gap: 14px; margin: 16px 0 8px; }
.hp-id .pav { margin: 0; }
.hp-id h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.hp-id h3 a { color: var(--ink); }
.hp-id p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.hp-war { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.hp-war b { font-size: 60px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.hp-war span { font-weight: 700; color: var(--muted); }
.hp-range { margin: 10px 0 14px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.hp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-facts dt { font-size: 11.5px; color: var(--muted); }
.hp-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 13.5px; }
.hp-next { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; background: var(--soft); border-radius: 8px; }
.hp-next span { font-size: 12.5px; color: var(--muted); }
.hp-next b { font-size: 18px; }
.hp-next small { color: var(--muted); }
.hp-foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hp-foot a { font-weight: 700; margin-right: 8px; }
.home-predtop { background: #fff; border-bottom: 1px solid var(--line); }
.hp-inner { padding-top: 40px; padding-bottom: 44px; }
.hp-list { border-top: 2px solid var(--ink); }
.hp-row { display: grid; grid-template-columns: 34px minmax(0, 1.5fr) 84px 230px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.hp-row:hover { background: var(--soft); text-decoration: none; }
.hp-rk { font-weight: 800; color: var(--muted); text-align: center; }
.hp-who { display: flex; align-items: center; min-width: 0; }
.hp-nm { display: flex; flex-direction: column; min-width: 0; }
.hp-nm b { font-size: 16px; }
.hp-nm small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.hp-w { font-size: 26px; font-weight: 900; letter-spacing: -.04em; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.hp-bar { display: flex; flex-direction: column; gap: 2px; }
.hp-bar small { color: var(--muted); font-size: 12px; }
.hp-now { color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 900px) { .hp-row { grid-template-columns: 28px minmax(0, 1fr) 72px; } .hp-bar, .hp-now { display: none; } }
.home-pred { padding: 32px 0; }

/* 홈 검색 아래 팀 바로가기와 통산 카드 */
.home-hero-copy .home-team-strip { grid-template-columns: 1fr; gap: 10px; padding: 20px 0 0; border-bottom: 0; }
.home-hero-copy .home-team-strip > span br { display: none; }
.home-team-strip a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.home-team-strip .tlogo { width: 24px; height: 24px; }
.hp-career .hp-tag { background: var(--ink); }
@media (max-width: 480px) {
  .hp-card { padding: 20px 16px; }
  .hp-facts { gap: 6px; }
  .hp-facts dt { font-size: 11px; }
  .hp-id > div { min-width: 0; }
  .hp-id p { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .home-player-body .hphoto { position: static; align-self: flex-start; margin-bottom: 8px; }
  #home-standings { min-width: 0; overflow-x: auto; }
}

/* 홈: 시즌·팀을 좁혀 가는 얼굴 검색 */
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex: none; }
.home-search-row button { cursor: pointer; font-family: inherit; background: #fff; }
.home-finder { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.home-finder[hidden] { display: none; }
.hf-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.hf-controls label { font-size: 12px; font-weight: 700; flex: 1; }
.hf-controls select { display: block; width: 100%; margin-top: 5px; min-height: 42px; padding: 8px 10px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.hf-controls > button { min-height: 42px; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.hf-team-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; font-weight: 700; margin-top: 18px; }
.hf-team-head span { font-weight: 400; color: var(--muted); }
.hf-teams { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hf-teams .note { margin: 0; font-size: 12px; }
.hf-teams button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; min-height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 5px; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.hf-teams button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.hf-teams .tlogo { width: 22px; height: 22px; }
.hf-status { font-size: 12px; color: var(--muted); padding-top: 14px; margin: 14px 0 10px; border-top: 1px solid var(--line); }
.hf-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 304px; overflow-y: auto; overscroll-behavior: contain; }
.hf-players button { display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 68px; padding: 8px 6px; border: 1px solid transparent; border-radius: 5px; background: #fff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.hf-players button:hover { background: var(--soft); border-color: var(--line); }
.hf-players .pav { margin: 0; flex: none; }
.hf-players button > span { min-width: 0; }
.hf-players b { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.hf-players small { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.hf-players .hf-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 14px 0; }
.hf-more { width: 100%; margin-top: 10px; min-height: 38px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
@media (max-width: 600px) {
  .home-finder { padding: 14px; }
  .hf-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-logo { width: 36px; height: 36px; }
}

/* 시험용: 팀 로고가 은은하게 교차하는 홈 배경. 로고 파일의 원래 색을 유지한다. */
.home-hero { position: relative; isolation: isolate; background: #152136; color: #fff; }
.home-hero h1 { color: #fff; }
.home-hero .home-season-line, .home-hero-copy > p:not(.home-hero-note) { color: rgba(255,255,255,.88); }
.home-hero .home-season-tag { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.home-hero .home-hero-note { color: rgba(255,255,255,.8); }
.home-hero .home-team-jump, .home-hero .home-finder, .home-hero .home-pred { color: var(--ink); }
.home-hero-inner { z-index: 1; }
.home-pred { position: relative; z-index: 1; }
.home-team-film { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.home-team-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,30,.64), rgba(7,16,30,.52) 44%, rgba(7,16,30,.3) 80%, rgba(7,16,30,.4)); }
.htf-frame { position: absolute; inset: -24px; opacity: 0; animation: home-team-fade 50s linear infinite; animation-delay: var(--phase); background: radial-gradient(ellipse at 76% 38%, color-mix(in srgb, var(--team-glow) 76%, white), var(--team-glow) 70%); }
.htf-frame img { position: absolute; width: min(760px, 66vw); height: min(760px, 66vw); right: 14%; top: 50%; transform: translateY(-50%); object-fit: contain; filter: blur(4px); opacity: .22; }
.home-team-film.is-paused .htf-frame { animation-play-state: paused; }
.home-team-film.is-static .htf-frame { animation: none; opacity: 0; }
.home-team-film.is-static .htf-frame:first-child { opacity: 1; }
.home-motion-toggle { position: absolute; z-index: 3; bottom: 12px; right: max(24px, calc((100% - 1152px) / 2)); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: rgba(255,255,255,.85); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
@keyframes home-team-fade {
  0% { opacity: 0; transform: translateX(12px) scale(1.02); }
  2% { opacity: 1; }
  10% { opacity: 1; }
  12% { opacity: 0; transform: translateX(-12px) scale(1.06); }
  100% { opacity: 0; transform: translateX(-12px) scale(1.06); }
}
@media (max-width: 1000px) {
  .htf-frame img { width: 680px; height: 680px; max-width: none; right: -140px; top: 32%; opacity: .26; }
  .home-team-film::after { background: linear-gradient(90deg, rgba(7,16,30,.62), rgba(7,16,30,.46)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-team-film .htf-frame { animation: none; opacity: 0; transform: none; }
  .home-team-film .htf-frame:first-child { opacity: 1; }
  .home-motion-toggle { display: none; }
}

/* 선수 공유는 사진·이름과 함께 상단에 두고 기록 섹션 간격을 확보한다. */
body[data-page="player"] #app { gap: 24px; }
body[data-page="player"] #app > .pdetails { margin-top: 4px; }
.phero .phero-actions { position: relative; z-index: 1; margin: 18px 0 0; gap: 10px; }
.phero .phero-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; color: var(--tt); background: color-mix(in srgb, var(--tt) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tt) 42%, transparent); border-radius: 7px; font-size: 13px; }
.phero .phero-actions .btn:hover { background: color-mix(in srgb, var(--tt) 24%, transparent); text-decoration: none; }
.phero .phero-actions #shareMsg { flex-basis: 100%; color: var(--tt); }
.phero .phero-actions #shareMsg:empty { display: none; }
@media (max-width: 600px) {
  .phero .phero-actions { margin-top: 20px; gap: 8px; }
  .phero .phero-actions .btn { padding: 9px 12px; }
}

/* Page-specific headline art: large portraits, club marks and the actual shot map. */
.banner.page-headline { --headline-color:#334e70; display:grid; grid-template-columns:minmax(0,1fr) 480px; align-items:center; gap:32px; min-height:310px; padding-top:0; padding-bottom:0; background:linear-gradient(105deg,#fff 24%,color-mix(in srgb,var(--headline-color) 9%,white) 58%,color-mix(in srgb,var(--headline-color) 45%,white)); }
.page-headline .headline-copy { min-width:0; padding:32px 0; }
.page-headline h1 { color:var(--ink); font-size:clamp(32px,3.5vw,48px); margin-bottom:14px; }
.page-headline .sub { color:#465367; max-width:44ch; line-height:1.75; }
.headline-facts { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:24px; color:#475569; font-size:13px; }
.headline-facts span { padding-left:10px; border-left:2px solid color-mix(in srgb,var(--headline-color) 50%,white); }
.headline-visual { min-width:0; align-self:stretch; display:flex; align-items:center; }
.headline-player { position:relative; display:block; width:100%; height:310px; color:var(--ink); text-decoration:none; isolation:isolate; }
.headline-portrait { position:absolute; height:100%; width:64%; right:-14px; bottom:0; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 12px 16px #12213220); }
.headline-watermark { position:absolute; inset:0; z-index:-1; display:flex; align-items:center; justify-content:center; opacity:.12; transform:rotate(-12deg); }
.headline-watermark .tlogo { width:310px; height:280px; object-fit:contain; }
.headline-player-caption { position:absolute; left:0; bottom:34px; z-index:1; max-width:62%; padding:14px 18px; background:rgba(255,255,255,.89); border-left:3px solid var(--headline-color); backdrop-filter:blur(8px); }
.headline-player strong { display:block; font-size:29px; line-height:1.25; letter-spacing:-.04em; margin:6px 0; overflow-wrap:anywhere; }
.headline-player span { color:#465367; font-size:12px; font-weight:600; }
.headline-player small { display:block; color:#465367; font-size:13px; }
.headline-logos { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px 12px; width:100%; padding:24px 0; }
.headline-logos a { display:flex; align-items:center; justify-content:center; height:100px; border-radius:14px; background:#ffffff85; box-shadow:0 4px 16px #19324f08; transition:background .15s; }
.headline-logos a:hover { background:#fff; }
.headline-logos .tlogo { width:76px; height:76px; object-fit:contain; }
.banner.headline-shots { background:linear-gradient(105deg,#fff 24%,#f4ece2 58%,#d8c3a5); }
.headline-shot-map { position:relative; width:100%; height:310px; overflow:hidden; }
.headline-mini-court { position:absolute; width:380px; right:-14px; top:-32px; transform:rotate(-13deg); opacity:.85; pointer-events:none; }
.headline-mini-court svg { width:100%; height:auto; }
.headline-map-caption { position:absolute; left:0; bottom:26px; padding:14px 18px; border-left:3px solid #b9642a; background:#fffffff0; }
.headline-map-caption strong,.headline-map-caption span,.headline-map-caption small { display:block; }
.headline-map-caption strong { font-size:24px; margin-bottom:5px; }
.headline-map-caption span { color:#634829; font-size:14px; }
.headline-map-caption small { color:#64748b; margin-top:5px; font-size:11px; }
.headline-silhouette { position:absolute; width:90%; height:90%; right:0; bottom:0; opacity:.6; background:radial-gradient(ellipse at 50% 27%,#7e91a8 0 17%,transparent 17.5%),radial-gradient(ellipse at 50% 103%,#7e91a8 0 46%,transparent 46.5%); }
.headline-faces { display:flex; width:100%; height:280px; gap:3px; }
.headline-faces a { position:relative; flex:1; min-width:0; overflow:hidden; background:linear-gradient(155deg,color-mix(in srgb,var(--portrait-color) 12%,white),color-mix(in srgb,var(--portrait-color) 65%,white)); color:#172334; text-decoration:none; }
.headline-faces .headline-portrait { width:100%; height:100%; right:0; object-fit:cover; object-position:50% top; }
.headline-faces strong { position:absolute; bottom:0; left:0; right:0; text-align:center; padding:28px 4px 14px; background:linear-gradient(transparent,#152338d9); color:white; font-size:17px; }
@media(max-width:1000px) and (min-width:761px) {
 .banner.page-headline { grid-template-columns:minmax(0,1fr) 380px; gap:20px; }
 .headline-logos .tlogo { width:60px; height:60px; }
}
@media(max-width:760px) {
 .banner.page-headline { grid-template-columns:1fr; gap:0; min-height:0; padding-top:0; padding-bottom:0; background:linear-gradient(155deg,#fff 25%,color-mix(in srgb,var(--headline-color) 14%,white) 68%,color-mix(in srgb,var(--headline-color) 40%,white)); }
 .page-headline .headline-copy { padding:26px 0 12px; }
 .page-headline h1 { font-size:32px; margin-bottom:10px; }
 .page-headline .sub { font-size:14px; }
 .headline-facts { margin-top:16px; font-size:12px; gap:8px 12px; }
 .headline-player { height:205px; }
 .headline-player .headline-portrait { width:64%; right:-10px; }
 .headline-watermark .tlogo { width:220px; height:200px; }
 .headline-player-caption { bottom:20px; padding:10px 12px; max-width:65%; }
 .headline-player strong { font-size:23px; margin:4px 0; }
 .headline-player small { font-size:12px; }
 .headline-logos { gap:8px; padding:14px 0 24px; }
 .headline-logos a { height:65px; border-radius:9px; }
 .headline-logos .tlogo { width:52px; height:52px; }
 .headline-shot-map { height:210px; }
 .headline-mini-court { width:290px; right:-20px; top:-42px; }
 .headline-map-caption { left:0; bottom:20px; padding:10px 12px; }
 .headline-map-caption strong { font-size:21px; }
 .headline-faces,.headline-versus { height:195px; margin-top:12px; }
 .headline-faces strong { font-size:13px; }
}
.headline-mini-court .hotlegend { display:none; }

.fr-roster-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.fr-roster-head label { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:14px; max-width:100%; }
.fr-roster-head select { min-width:0; max-width:100%; }
@media(max-width:600px) { .fr-roster-head label { width:100%; } .fr-roster-head select { flex:1; width:0; } }

/* Team comparison: separate controls, roster context and selected teams. */
#cmp { display:flex; flex-direction:column; gap:24px; min-width:0; }
#cmp > .note { margin:0; line-height:1.8; }
#cmp > .btn { align-self:flex-start; }
#cmp .picker { gap:12px; padding:4px 0; }
#cmp .picker .note { font-weight:700; color:var(--ink); margin-right:4px; }
#cmp #prost { display:flex; flex-direction:column; align-items:stretch; gap:16px; margin:0; padding:20px; background:var(--soft); border:1px solid var(--line); border-radius:8px; }
#cmp #prost:empty { display:none; }
.team-roster-label { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 20px; }
.team-roster-label b { color:var(--ink); }
#prost .chips-inline { display:flex; flex-wrap:wrap; gap:14px 20px; align-items:center; }
#prost .chips-inline a { display:inline-flex; align-items:center; min-height:36px; }
.franchise-picker { min-width:0; }
.franchise-picker > .note { margin:0 0 14px; display:flex; align-items:center; justify-content:space-between; }
.franchise-options { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:8px; padding:3px; }
.franchise-option { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-width:0; padding:14px 4px 10px; border:1px solid var(--line); border-top:4px solid var(--club-color); border-radius:8px; background:color-mix(in srgb,var(--club-color) 8%,white); color:var(--ink); font:inherit; cursor:pointer; }
.franchise-option .tlogo { width:44px; height:44px; padding:4px; object-fit:contain; border-radius:6px; background:#fff; }
.franchise-option > span { font-size:14px; font-weight:800; white-space:nowrap; }
.franchise-option small { font-size:11px; color:var(--muted); }
.franchise-option.on { background:var(--club-color); border-color:var(--club-color); color:var(--club-ink); }
.franchise-option.on small { color:var(--club-ink); }
.franchise-option:hover { outline:2px solid var(--club-color); outline-offset:0; }
#cmpcard .tabs { margin-bottom:4px; }
@media(max-width:1000px) {
 .franchise-options { grid-template-columns:repeat(10,84px); overflow-x:auto; padding-bottom:12px; scroll-snap-type:x proximity; }
 .franchise-option { scroll-snap-align:start; }
}
@media(max-width:600px) {
 #cmp { gap:20px; }
 #cmp .picker { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
 #cmp .picker .note { grid-column:1/-1; }
 #cmp .picker #pfr { grid-column:1/-1; width:100%; }
 #cmp .picker #psn { min-width:0; width:100%; }
 #cmp #prost { padding:16px; }
 #prost .chips-inline { gap:12px 16px; }
 #cmpcard .tabs button { padding-inline:8px; font-size:13px; }
}

.season-stat-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
#season-stat-tabs { flex-wrap:wrap; }
#season-stat-table { max-height:580px; overflow:auto; border:1px solid var(--line); border-radius:6px; }
.season-ledger { border-collapse:separate; border-spacing:0; width:100%; font-variant-numeric:tabular-nums; }
.season-ledger th,.season-ledger td { padding:13px 16px; white-space:nowrap; text-align:right; min-width:90px; }
.season-ledger thead th { position:sticky; top:0; z-index:2; }
.season-ledger th:first-child { position:sticky; left:0; min-width:90px; width:90px; text-align:left; z-index:3; }
.season-ledger td:nth-child(2),.season-ledger th:nth-child(2) { position:sticky; left:90px; min-width:150px; max-width:190px; text-align:left; z-index:3; border-right:2px solid var(--line); }
.season-ledger tbody th,.season-ledger tbody td { background:#fff; border-bottom:1px solid var(--line); }
.season-ledger tbody tr:nth-child(even) > * { background:#f4f6f9; }
.season-ledger tbody tr:hover > * { background:#fdecec; }
.season-ledger thead th:first-child,.season-ledger thead th:nth-child(2) { z-index:4; }
#season-stat-glossary dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px 24px; }
#season-stat-glossary dt { font-weight:750; }
#season-stat-glossary dd { margin:4px 0 0; color:var(--muted); font-size:13px; }
@media(max-width:600px) {
 #season-stat-tabs button { padding:10px 8px; font-size:13px; }
 .player-season-stats .row label { max-width:100%; }
 #season-stat-season { min-width:0; max-width:240px; }
 .season-ledger th,.season-ledger td { padding:12px 10px; min-width:76px; font-size:13px; }
 .season-ledger th:first-child { min-width:72px; width:72px; }
 .season-ledger td:nth-child(2),.season-ledger th:nth-child(2) { left:72px; min-width:110px; max-width:110px; overflow:hidden; text-overflow:ellipsis; }
}

/* 지표 사전 */
.gloss-page { max-width: 820px; margin: 0 auto; padding: 8px 16px 48px; }
.gloss-page #gq { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 14px; border: 1px solid #d5dae3; border-radius: 10px; margin: 8px 0 18px; }
.gloss-group h2 { font-size: 15px; margin: 22px 0 8px; color: #121826; }
.gloss-group dl { margin: 0; border-top: 1px solid #e3e7ee; }
.gloss-item { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 2px; border-bottom: 1px solid #e3e7ee; }
.gloss-item dt { font-weight: 700; }
.gloss-item dd { margin: 0; line-height: 1.6; color: #3a4357; }
/* 개인정보처리방침 */
.privacy-p { margin: 0 0 10px; line-height: 1.7; color: #3a4357; }
@media (max-width: 560px) { .gloss-item { grid-template-columns: 1fr; gap: 3px; } }

/* 선수 비교 머리: 예시 막대 (빨강=첫 번째, 파랑=두 번째) */
.headline-versus { width:100%; min-height:280px; box-sizing:border-box; padding:26px 30px; display:flex; flex-direction:column; justify-content:center; gap:14px; background:#16233b; color:#fff; }
.headline-versus p { margin:0 0 4px; font-size:13px; font-weight:700; }
.headline-versus em { font-style:normal; font-size:11px; font-weight:700; background:rgba(255,255,255,.16); border-radius:999px; padding:2px 8px; margin-left:6px; }
.vs-row { display:grid; grid-template-columns:64px 1fr; gap:4px 10px; align-items:center; font-size:12.5px; }
.vs-row span { grid-row:1 / span 2; color:#cfd8e6; }
.vs-row i { display:block; height:9px; border-radius:5px; width:var(--w); }
.vs-row i.a { background:var(--red); } .vs-row i.b { background:#4f8cff; }
