body { font-family: "Avenir Next", Avenir, "Trebuchet MS", "Segoe UI", sans-serif; margin: 0; background: #faf6f6; color: #17241d; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 18px 22px 40px; }
h1 { font-size: 1.7rem; margin: 0 0 6px; font-weight: 750; }
h2 { font-size: 1.15rem; margin: 18px 0 8px; }
.sub, .legend { color: #66756d; margin: 0 0 12px; max-width: 1100px; line-height: 1.45; }
.legend a { color: #0d6d41; font-weight: 650; }
.ss-bar { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.ss-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ss-lang { display: flex; justify-content: flex-end; gap: 6px; }
.ss-lang button { font: inherit; font-weight: 750; border: 1px solid #d1d5db; background: #fff; color: #17241d; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.ss-lang button[aria-pressed="true"] { background: #169d5e; color: #fff; border-color: #169d5e; }
.ss-tabs a { display: block; text-align: center; text-decoration: none; background: #169d5e; color: #fff; font-weight: 750; font-size: 1.35rem; line-height: 1.2; padding: 18px 12px; border-radius: 14px; }
.ss-tabs a.on, .ss-tabs a:hover { background: #0d6d41; }
.picker { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; margin: 8px 0 4px; }
label { display: block; font-size: 0.78rem; font-weight: 650; margin-bottom: 4px; color: #66756d; }
.picker select { font: inherit; padding: 8px 10px; width: 100%; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; box-sizing: border-box; }
.search-box { position: relative; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
.search-field:focus-within { border-color: #169d5e; }
.search-field svg { width: 16px; height: 16px; color: #66756d; flex: none; }
.search-field input[type="search"] { font: inherit; width: 100%; border: 0; padding: 0; background: transparent; outline: none; }
.search-results { position: absolute; z-index: 6; left: 0; right: auto; width: max(100%, 360px); margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 16px 40px rgba(23, 36, 29, 0.12); max-height: 256px; overflow: auto; }
.search-results button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; padding: 6px; border-radius: 8px; cursor: pointer; }
.search-results button.active, .search-results button:hover { background: #f3f4f6; }
.search-avatar { width: 32px; height: 32px; border-radius: 999px; background: #f3f4f6; color: #66756d; font-size: 10px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.search-copy { min-width: 0; }
.search-results .who { display: block; font-size: 13px; font-weight: 700; }
.search-results .meta { display: block; color: #8b9690; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .empty { padding: 8px 10px; color: #66756d; font-size: 12px; }
.meta-toggle { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 650; cursor: pointer; margin-top: 12px; }
.picker-body { margin-top: 8px; }
.picker-body.closed { display: none; }
#seasons label { display: inline-block; margin-right: 14px; font-size: 1rem; font-weight: 650; color: #17241d; }
.badge { display: inline-block; background: #169d5e; color: white; border-radius: 999px; padding: 2px 8px; font-size: 12px; margin-left: 8px; }
.identity { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.identity h2 { margin: 0; }
.identity img.player { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #e5e7eb; }
.identity img.club { width: 42px; height: 42px; object-fit: contain; }
.cards { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; min-width: 120px; }
.card b { display: block; font-size: 1.15rem; font-weight: 700; margin-top: 2px; }
.warn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; padding: 8px 10px; border-radius: 8px; margin: 0 0 12px; }
.chart-wrap { position: relative; }
svg#chart, svg#vol-chart { width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
svg#chart { height: 420px; }
svg#vol-chart { height: 250px; }
.vol-head { margin: 16px 0 4px; font-size: 1.05rem; }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.45; box-shadow: 0 8px 20px rgba(23, 36, 29, 0.08); min-width: 220px; }
.chart-tip b { font-weight: 700; }
.chart-toggles { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
label.points { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 0.95rem; font-weight: 650; color: #17241d; }
.comparables-panel { margin: 16px 0 8px; }
.comparables-panel h2 { margin-bottom: 4px; }
.comparables { display: grid; gap: 8px; }
.comparable { display: grid; grid-template-columns: 1.4rem minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr)); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #e5e7eb; }
.comparable .who { display: flex; gap: 8px; align-items: flex-start; }
.comparable img.face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #e5e7eb; flex: none; }
.face-slot { position: relative; display: inline-flex; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #e7e1d6; align-items: center; justify-content: center; flex: none; }
.face-slot .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face-fallback { font-size: 11px; font-weight: 700; color: #5c564c; }
.comparable img.crest { width: 22px; height: 22px; object-fit: contain; flex: none; margin-top: 7px; }
.comparable .meta { color: #66756d; font-size: 0.78rem; }
.anchor-date, .comparable-date { display: block; font-size: 1.35rem; font-weight: 750; color: #17241d; line-height: 1.2; margin-top: 2px; }
.anchor-date { font-size: 1.6rem; margin: 4px 0 8px; }
.comparable-club { display: block; font-size: 1rem; font-weight: 650; margin-top: 2px; }
body.hide-points .chart-point, body.hide-points .series-point { display: none; }
#meta { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 13px; color: #66756d; }
.screen { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(250, 246, 246, 0.88); }
.screen[hidden] { display: none !important; }
.screen-card { background: #fff; border: 1px solid #d1d5db; border-radius: 14px; padding: 22px 28px; min-width: 280px; text-align: center; box-shadow: 0 12px 32px rgba(23, 36, 29, 0.08); }
.screen-card p { margin: 0; font-weight: 650; }
.spinner { width: 36px; height: 36px; margin: 0 auto 12px; border: 3px solid #d1d5db; border-top-color: #169d5e; border-radius: 50%; animation: screen-spin 0.8s linear infinite; }
@keyframes screen-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .picker { grid-template-columns: 1fr; }
  .ss-tabs { grid-template-columns: 1fr 1fr; }
  .ss-tabs a { font-size: 1.05rem; padding: 14px 8px; }
  }
