:root {
  --page: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --text: #182033;
  --muted: #697386;
  --line: #dfe6f2;
  --blue: #246bfe;
  --blue-dark: #174bcc;
  --green: #0f9f6e;
  --amber: #b7791f;
  --red: #d64545;
  --shadow: 0 18px 55px rgba(32, 55, 90, 0.11);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(111, 87, 45, 0.08), transparent 32%),
    linear-gradient(245deg, rgba(22, 59, 52, 0.08), transparent 38%),
    linear-gradient(180deg, #fbfaf5 0%, #f5f2e9 53%, #eef1ea 100%);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #10213f;
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 33, 63, 0.22);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-actions {
  margin-left: auto;
}

.detail-top-search {
  width: min(520px, 42vw);
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 6px;
  border: 1px solid rgba(21, 34, 58, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(24, 39, 72, 0.08);
}

.detail-top-search input[type="search"] {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: #f7f9fd;
  color: var(--text);
  outline: none;
}

.detail-top-search input[type="search"]:focus {
  box-shadow: inset 0 0 0 2px rgba(36, 107, 254, 0.22);
}

.detail-top-search button {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
}

.detail-top-search .autocomplete-menu {
  top: calc(100% + 8px);
}

.ghost-button,
button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 15px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  cursor: not-allowed;
  background: #ccd6e5;
  border-color: #ccd6e5;
}

.ghost-button:hover {
  border-color: var(--blue);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
  padding: 34px;
  border: 1px solid rgba(36, 107, 254, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.hero-stats span {
  display: block;
  font-size: 25px;
  font-weight: 800;
}

.hero-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  gap: 22px;
  margin-top: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(34, 55, 90, 0.08);
}

.search-panel,
.import-panel {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h3 {
  margin: 0;
  font-size: 20px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
}

input[type="search"],
input[type="text"],
input[type="number"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

select {
  min-height: 44px;
}

.advanced-toggle.is-active,
.advanced-home-button:hover {
  border-color: rgba(36, 107, 254, 0.42);
  background: #edf4ff;
  color: #17345c;
}

.advanced-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 60, 92, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.advanced-grid label,
.attr-filter-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #334158;
  font-size: 12px;
  font-weight: 800;
}

.attribute-filter {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(37, 60, 92, 0.12);
}

.attribute-filter-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: #22314a;
  font-weight: 900;
}

.attribute-filter-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.attr-filter-list {
  display: grid;
  gap: 10px;
}

.attr-filter-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(170px, 1.2fr) minmax(90px, 0.6fr) minmax(120px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(37, 60, 92, 0.13);
  border-radius: 12px;
  background: #ffffff;
}

.attr-filter-remove {
  align-self: end;
  min-height: 44px;
}

.advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.autocomplete-field {
  position: relative;
  min-width: 0;
}

.autocomplete-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: min(420px, 64vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(37, 60, 92, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(25, 44, 74, 0.16);
  text-align: left;
}

.autocomplete-menu.is-open {
  display: grid;
  gap: 6px;
}

.autocomplete-option {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  text-align: left;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
  border-color: #84a9ff;
  background: #edf4ff;
}

.autocomplete-main {
  min-width: 0;
}

.autocomplete-main strong,
.autocomplete-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-main strong {
  font-size: 15px;
  line-height: 1.25;
}

.autocomplete-main small {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #53657f;
  font-size: 12px;
}

.autocomplete-main small span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px;
  align-items: center;
  color: #22314a;
  font-size: 12px;
  font-weight: 800;
}

.autocomplete-meta span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #f2f6fb;
  border: 1px solid #d9e4f2;
  white-space: nowrap;
}

.autocomplete-state {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.player-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.player-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1.35fr) minmax(150px, 0.9fr) minmax(110px, 0.75fr) 72px 84px 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.player-row:hover {
  border-color: rgba(36, 107, 254, 0.45);
  box-shadow: 0 12px 26px rgba(36, 107, 254, 0.08);
}

.player-row strong {
  display: block;
}

.player-row > span {
  min-width: 0;
}

.player-row > span:not(:nth-child(2)) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-row small,
.muted {
  color: var(--muted);
}

.rating-pill {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 800;
}

.file-drop {
  display: grid;
  gap: 8px;
  min-height: 142px;
  place-items: center;
  padding: 22px;
  border: 1px dashed #b6c4db;
  border-radius: 16px;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  max-width: 100%;
}

.file-drop span {
  font-weight: 800;
}

.file-drop small {
  color: var(--muted);
  line-height: 1.5;
}

.import-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(214, 69, 69, 0.24);
  border-radius: 14px;
  background: #fff7f7;
}

.danger-zone strong,
.danger-zone small {
  display: block;
}

.danger-zone small {
  margin-top: 4px;
  color: var(--muted);
}

.danger-button {
  background: var(--red);
  border-color: var(--red);
}

.danger-button:hover {
  background: #b92f2f;
}

.status-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.summary-card {
  padding: 12px;
  border-radius: 12px;
  background: #f3f6fb;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  font-size: 22px;
}

.preview-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin-top: 14px;
}

.preview-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.preview-row.error {
  border-color: rgba(214, 69, 69, 0.35);
  background: #fff7f7;
}

.detail-shell main {
  margin-top: 18px;
}

.player-report {
  display: grid;
  grid-template-columns: minmax(310px, 350px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-card,
.insight-card,
.attr-card {
  border: 1px solid rgba(21, 34, 58, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(24, 39, 72, 0.10);
}

.profile-card {
  position: sticky;
  top: 14px;
  overflow: hidden;
  padding: 16px;
}

.boost-panel {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 34, 58, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(24, 39, 72, 0.10);
}

.boost-panel-head,
.compare-boost-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.boost-panel-head h2 {
  margin: 0;
  color: #17243b;
  font-size: 20px;
}

.boost-panel-head strong,
.compare-boost-head strong {
  min-width: 42px;
  text-align: right;
  color: var(--blue);
  font-family: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate", "Arial", sans-serif;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.boost-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-height: 44px;
  padding: 5px;
  border: 1px solid rgba(36, 107, 254, 0.16);
  border-radius: 999px;
  background: #edf3ff;
  overflow: hidden;
}

.boost-fill {
  position: absolute;
  inset: 5px auto 5px 5px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 107, 254, 0.18), rgba(15, 159, 110, 0.24));
  pointer-events: none;
  transition: width 160ms ease;
}

.boost-step {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #45556f;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}

.boost-step:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.boost-step.is-active {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(36, 107, 254, 0.16);
}

.boost-step span {
  display: inline-block;
  min-width: 20px;
  font-variant-numeric: tabular-nums;
}

.profile-nameblock span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-nameblock h2 {
  margin: 6px 0 3px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 0.96;
  letter-spacing: 0;
}

.profile-nameblock p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.ability-ribbon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ability-ribbon div {
  padding: 10px 12px;
  border: 1px solid rgba(36, 107, 254, 0.13);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #edf4ff);
}

.ability-ribbon span,
.profile-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ability-ribbon strong {
  display: block;
  margin-top: 2px;
  color: #132747;
  font-family: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate", "Arial", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  line-height: 1;
}

.compare-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0 2px;
}

.compare-actions button {
  width: 100%;
  min-height: 42px;
}

.compare-actions span {
  display: inline-block;
  margin-left: 4px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.compare-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.compare-drawer.open {
  pointer-events: auto;
}

.compare-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 21, 37, 0);
  transition: background 160ms ease;
}

.compare-drawer.open .compare-backdrop {
  background: rgba(12, 21, 37, 0.34);
}

.compare-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 20px;
  border-left: 1px solid rgba(21, 34, 58, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -24px 0 55px rgba(24, 39, 72, 0.18);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.compare-drawer.open .compare-panel {
  transform: translateX(0);
}

.compare-panel-head,
.compare-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compare-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.compare-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compare-message.info {
  color: var(--blue-dark);
}

.compare-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.compare-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.compare-list-item strong,
.compare-list-item small {
  display: block;
  min-width: 0;
}

.compare-list-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.compare-order {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue-dark);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.compare-remove {
  padding: 8px 10px;
  font-size: 13px;
}

.compare-empty,
.compare-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compare-panel-actions button {
  min-width: 112px;
}

.foot-card {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
}

.foot-shape {
  width: 64px;
  min-height: 36px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(22, 39, 68, 0.09);
  background: #fff8e7;
  box-shadow: inset 0 -8px 18px rgba(183, 121, 31, 0.08);
}

.left-foot {
  border-radius: 28px 18px 18px 28px;
}

.right-foot {
  border-radius: 18px 28px 28px 18px;
}

.foot-shape span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffe2a4;
  color: #8f5d12;
  font-size: 11px;
  font-weight: 900;
}

.foot-shape strong {
  color: #253148;
  font-family: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate", "Arial", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.profile-list {
  border-top: 1px solid var(--line);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.profile-row strong {
  min-width: 0;
  color: #27344b;
  text-align: right;
}

.profile-section-title {
  margin: 13px 0 7px;
  color: #34415a;
  font-size: 13px;
  font-weight: 900;
}

.pitch-panel {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.pitch-map {
  width: 100%;
  height: 286px;
  display: block;
  border-radius: 12px;
  background: linear-gradient(180deg, #b8d5c7, #8fb7a5);
}

.radar-panel {
  display: grid;
  place-items: center;
  min-height: 178px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.pitch-base,
.pitch-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 0.7;
}

.pitch-dot {
  fill: rgba(255, 255, 255, 0.42);
}

.position-marker circle {
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.4;
  filter: drop-shadow(0 4px 8px rgba(18, 51, 37, 0.22));
}

.position-marker .position-value {
  fill: #fff;
  stroke: rgba(20, 32, 52, 0.24);
  stroke-width: 0.25px;
  paint-order: stroke fill;
  font-family: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate", "Arial", sans-serif;
  font-size: 5.6px;
  font-weight: 900;
  pointer-events: none;
}

.position-marker .position-label {
  fill: #fff;
  stroke: rgba(20, 32, 52, 0.42);
  stroke-width: 0.22px;
  paint-order: stroke fill;
  font-family: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate", "Arial", sans-serif;
  font-size: 4.4px;
  font-weight: 900;
  pointer-events: none;
}

.position-marker.low circle {
  fill: #8791a3;
}

.position-marker.mid circle {
  fill: #d99632;
}

.position-marker.high circle {
  fill: #35b96d;
}

.pitch-empty,
.radar-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.report-main {
  display: grid;
  gap: 12px;
}

.insight-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(260px, 0.66fr);
  gap: 18px;
  align-items: center;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
}

.insight-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.radar-chart {
  width: min(100%, 218px);
  justify-self: center;
  display: block;
}

.radar-grid {
  fill: none;
  stroke: #dce5f2;
  stroke-width: 1;
}

.radar-axis {
  stroke: #e5ebf4;
  stroke-width: 1;
}

.radar-area {
  fill: rgba(36, 107, 254, 0.16);
}

.radar-line {
  fill: none;
  stroke: #246bfe;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.radar-dot {
  fill: #fff;
  stroke: #246bfe;
  stroke-width: 2;
}

.radar-label {
  fill: #40516c;
  font-size: 14px;
  font-weight: 900;
}

.attribute-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.attr-card {
  overflow: hidden;
}

.attr-card h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #29364e;
  font-size: 17px;
}

.attr-list {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.attr-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 31px;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(22, 39, 68, 0.07);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.attr-item > span {
  color: #334158;
  font-weight: 800;
}

.attr-value {
  min-width: 28px;
  font-family: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate", "Arial", sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  font-weight: 700;
}

.attr-value.low {
  color: #8791a3;
}

.attr-value.mid {
  color: var(--amber);
}

.attr-value.high {
  color: var(--green);
}

.hidden-attr-card {
  grid-column: 1 / -1;
}

.hidden-attr-card .attr-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-shell main {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  min-width: 0;
}

.compare-shell {
  width: min(1920px, calc(100% - 64px));
  padding-top: 26px;
}

.compare-player-grid {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 0;
  backdrop-filter: blur(14px);
}

.compare-player-card,
.compare-section {
  border: 1px solid rgba(21, 34, 58, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(24, 39, 72, 0.10);
}

.compare-player-card {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.compare-swatch {
  width: 10px;
  min-height: 100%;
  border-radius: 999px;
  background: var(--compare-color);
}

.compare-player-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
}

.compare-player-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compare-card-ratings {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compare-boost-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 9px;
  border: 1px solid rgba(22, 39, 68, 0.08);
  border-radius: 12px;
  background: #fbfdff;
}

.compare-boost-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.compare-boost-head strong {
  min-width: 30px;
  color: var(--compare-color);
  font-size: 18px;
}

.compare-boost-track {
  min-height: 36px;
  padding: 4px;
  border-color: rgba(22, 39, 68, 0.10);
  background: #f0f4fb;
}

.compare-boost-track .boost-fill {
  inset: 4px auto 4px 4px;
  background: rgba(36, 107, 254, 0.16);
  background: color-mix(in srgb, var(--compare-color) 18%, transparent);
}

.compare-boost-track .boost-step {
  min-height: 28px;
  font-size: 12px;
}

.compare-boost-track .boost-step.is-active {
  color: var(--compare-color);
}

.compare-card-pitch {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 5px;
  border: 1px solid rgba(22, 39, 68, 0.08);
  border-radius: 12px;
  background: #fbfdff;
}

.compare-pitch-map {
  width: 100%;
  height: 150px;
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, #b8d5c7, #8fb7a5);
}

.compare-pitch-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compare-card-ratings span {
  padding: 5px 7px;
  border-radius: 10px;
  background: #f2f6fd;
  color: #40516c;
  font-size: 12px;
  font-weight: 900;
}

.compare-card-ratings strong {
  margin-left: 3px;
  color: #132747;
  font-variant-numeric: tabular-nums;
}

.compare-section {
  padding: 16px;
  min-width: 0;
}

.compare-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.compare-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.22fr) minmax(0, 0.78fr);
  align-items: start;
  gap: 12px;
}

.compare-radar-card,
.compare-all-grid {
  min-height: 0;
}

.compare-radar-card {
  position: sticky;
  top: 126px;
  padding: 12px;
}

.compare-card-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.compare-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compare-radar-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.compare-radar-chart {
  width: min(100%, 260px);
  display: block;
}

.compare-radar-area {
  fill: var(--compare-color);
  fill-opacity: 0.13;
}

.compare-radar-line {
  fill: none;
  stroke: var(--compare-color);
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.compare-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34415a;
  font-size: 13px;
  font-weight: 900;
}

.compare-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.compare-all-grid {
  display: grid;
  gap: 8px;
}

.duel-all-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multi-all-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-compare-card,
.multi-table-card.compact {
  padding: 10px;
}

.compact-compare-card h2,
.multi-table-card.compact h2 {
  margin: 0 0 7px;
  font-size: 15px;
}

.duel-list {
  display: grid;
  gap: 4px;
}

.duel-row {
  display: grid;
  grid-template-columns: minmax(52px, 1fr) minmax(58px, 0.72fr) minmax(52px, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 24px;
}

.duel-label {
  position: relative;
  z-index: 2;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 2px 4px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(21, 34, 58, 0.08);
  color: #334158;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.duel-value {
  position: relative;
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #f4f7fc;
  font-size: 12px;
}

.duel-value.left {
  justify-content: flex-end;
}

.duel-value.right {
  justify-content: flex-start;
}

.duel-value strong {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
}

.duel-value span {
  position: absolute;
  inset: 0 0 0 auto;
  background: rgba(105, 115, 134, 0.14);
}

.duel-value.right span {
  inset: 0 auto 0 0;
}

.duel-value.better {
  color: var(--green);
}

.duel-value.better span {
  background: rgba(15, 159, 110, 0.18);
}

.duel-value.worse {
  color: var(--red);
}

.duel-value.same {
  color: #40516c;
}

.multi-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow-x: auto;
}

.multi-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.multi-table th,
.multi-table td {
  padding: 5px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.multi-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  color: #34415a;
  font-size: 13px;
}

.multi-table th span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.multi-table th span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--compare-color);
}

.multi-table td:first-child {
  color: #334158;
  font-weight: 900;
}

.multi-value {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 76px;
  font-variant-numeric: tabular-nums;
}

.multi-value strong {
  font-size: 16px;
}

.multi-value small {
  font-size: 12px;
  font-weight: 900;
}

.multi-value.better {
  color: var(--green);
}

.multi-value.worse {
  color: var(--red);
}

.multi-value.same {
  color: #40516c;
}

.multi-value.empty {
  color: var(--muted);
}

.compare-warning {
  padding: 12px 14px;
  border: 1px solid rgba(214, 69, 69, 0.24);
  border-radius: 14px;
  background: #fff7f7;
  color: var(--red);
  font-weight: 800;
}

.multi-table-card.compact {
  min-width: 0;
  border: 1px solid rgba(21, 34, 58, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(24, 39, 72, 0.10);
}

@media (min-width: 1180px) {
  .compare-shell {
    width: min(1920px, calc(100% - 72px));
  }

  .compare-player-grid {
    gap: 14px;
    padding: 10px 0;
  }

  .compare-player-card {
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .compare-swatch {
    width: 10px;
  }

  .compare-player-card h2 {
    font-size: 20px;
  }

  .compare-player-card p {
    margin: 4px 0 10px;
    font-size: 13px;
  }

  .compare-card-ratings {
    gap: 8px;
  }

  .compare-card-pitch {
    margin-top: 10px;
    padding: 6px;
  }

  .compare-pitch-map {
    height: 190px;
  }

  .compare-card-ratings span {
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 13px;
  }

  .compare-workbench {
    grid-template-columns: minmax(330px, 0.22fr) minmax(0, 0.78fr);
    gap: 14px;
  }

  .compare-radar-card {
    top: 124px;
    padding: 16px;
    border-radius: 18px;
  }

  .compare-card-head h2 {
    margin-bottom: 6px;
    font-size: 22px;
  }

  .compare-note {
    font-size: 13px;
  }

  .compare-radar-chart {
    width: min(100%, 340px);
  }

  .compare-legend {
    gap: 8px 14px;
  }

  .compare-legend span {
    gap: 6px;
    font-size: 13px;
  }

  .compare-all-grid {
    gap: 10px;
  }

  .duel-all-grid,
  .multi-all-grid {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
  }

  .compact-compare-card,
  .multi-table-card.compact {
    padding: 12px;
    border-radius: 18px;
  }

  .compact-compare-card h2,
  .multi-table-card.compact h2 {
    margin: 0 0 8px;
    font-size: 18px;
  }

  .duel-list {
    gap: 5px;
  }

  .duel-row {
    grid-template-columns: minmax(62px, 1fr) minmax(74px, 0.7fr) minmax(62px, 1fr);
    gap: 5px;
    min-height: 30px;
  }

  .duel-label {
    min-height: 30px;
    padding: 3px 5px;
    border-radius: 8px;
    font-size: 14px;
  }

  .duel-value {
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
  }

  .duel-value strong {
    min-width: 22px;
  }

  .multi-table {
    min-width: 0;
    table-layout: fixed;
  }

  .multi-table th,
  .multi-table td {
    padding: 5px 6px;
    font-size: 12px;
  }

  .multi-table th {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .multi-table th span {
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .multi-table th span::before {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
  }

  .multi-table td:first-child {
    width: 52px;
    white-space: nowrap;
  }

  .multi-value {
    gap: 4px;
    min-width: 0;
  }

  .multi-value strong {
    font-size: 14px;
  }

  .multi-value small {
    font-size: 10px;
  }
}

.loading-panel,
.empty-state {
  padding: 30px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 24px, 1440px);
  }

  .hero-band,
  .workspace-grid,
  .player-report,
  .insight-card,
  .attribute-board,
  .compare-workbench {
    grid-template-columns: 1fr;
  }

  .compare-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-radar-card {
    position: static;
  }

  .duel-all-grid,
  .multi-all-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .detail-shell .topbar {
    flex-wrap: wrap;
  }

  .detail-top-search {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-basis: 100%;
  }

  .player-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    display: none;
  }

  .detail-top-search {
    grid-template-columns: 1fr;
  }

  .detail-top-search button {
    width: 100%;
  }

  .hero-band {
    padding: 22px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .advanced-grid,
  .attr-filter-row {
    grid-template-columns: 1fr;
  }

  .advanced-actions button {
    width: 100%;
  }

  .autocomplete-option {
    grid-template-columns: 1fr;
  }

  .autocomplete-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid,
  .attribute-board {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 18px;
  }

  .attr-item {
    grid-template-columns: minmax(72px, 0.7fr) minmax(100px, 1fr);
  }

  .compare-actions,
  .compare-player-grid {
    grid-template-columns: 1fr;
  }

  .compare-panel {
    width: 100%;
    padding: 16px;
  }

  .compare-list-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .compare-remove {
    grid-column: 2;
    justify-self: start;
  }

  .duel-row {
    grid-template-columns: minmax(52px, 1fr) minmax(58px, 0.72fr) minmax(52px, 1fr);
    gap: 4px;
    padding: 0;
    border-bottom: 0;
  }

  .duel-label {
    order: initial;
    text-align: center;
  }
}


.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

.ghost-button,
button.ghost-button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

button.ghost-button:hover {
  background: #f7fafc;
  border-color: var(--blue);
}

.home-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-page {
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(111, 87, 45, 0.08), transparent 32%),
    linear-gradient(245deg, rgba(22, 59, 52, 0.08), transparent 38%),
    linear-gradient(180deg, #fbfaf5 0%, #f5f2e9 53%, #eef1ea 100%);
}

.home-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 0 18px;
}

.minimal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.minimal-topbar .brand-mark,
.home-mark {
  background: #183a34;
  color: #fbf7ea;
  border: 1px solid rgba(192, 169, 112, 0.36);
  box-shadow: 0 14px 34px rgba(24, 58, 52, 0.22);
}

.admin-link {
  color: #6f6656;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.admin-link:hover {
  color: #173b35;
}

.search-landing {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: clamp(94px, 18vh, 170px) 0 34px;
  text-align: center;
}

.platform-kicker {
  margin: 0 0 4px;
  color: #8a7442;
  font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.search-landing h1 {
  margin: 0;
  color: #16231f;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", "Songti SC", "Microsoft YaHei", serif;
  font-size: clamp(64px, 8.8vw, 112px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 0 12px 30px rgba(28, 45, 40, 0.08);
}

.site-subtitle {
  max-width: 760px;
  margin: -4px 0 16px;
  color: #5b645d;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", "Songti SC", "Microsoft YaHei", serif;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.engine-search {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(126, 103, 58, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 24px 70px rgba(41, 55, 45, 0.13);
}

.engine-search input[type="search"] {
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: transparent;
  color: #16231f;
  font-size: 17px;
  outline: none;
}

.engine-search .autocomplete-field {
  min-height: 56px;
}

.engine-search .autocomplete-menu {
  border-color: rgba(126, 103, 58, 0.18);
  box-shadow: 0 24px 60px rgba(41, 55, 45, 0.18);
}

.engine-search input[type="search"]::placeholder {
  color: #8b948e;
}

.engine-search > button {
  min-width: 108px;
  border-radius: 12px;
  background: #183a34;
  border-color: #183a34;
  color: #fff9e8;
}

.engine-search > .advanced-home-button {
  min-width: 86px;
  background: #fffaf0;
  border-color: rgba(126, 103, 58, 0.22);
  color: #243b34;
}

.engine-search > .advanced-home-button:hover {
  background: #f4ead6;
  border-color: rgba(126, 103, 58, 0.34);
  color: #183a34;
}

.engine-search > button:hover {
  background: #102c27;
}

.ownership-footer {
  color: #786f62;
  font-size: 13px;
  text-align: center;
}

.results-shell main,
.admin-shell main {
  margin-top: 28px;
}

.results-shell .search-panel,
.admin-shell .import-panel,
.admin-login-panel {
  padding: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-login-panel {
  max-width: 560px;
  margin: 0 auto;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form label {
  color: #334158;
  font-weight: 800;
}

.admin-login-form button {
  justify-self: start;
}

.pitch-panel {
  padding: 10px;
  border: 1px solid rgba(122, 91, 52, 0.18);
  border-radius: 16px;
  background: #fffaf0;
}

.pitch-map {
  width: 100%;
  height: 286px;
  display: block;
  border-radius: 12px;
  background: linear-gradient(180deg, #7a5a35, #6f4f2f);
}

.pitch-base,
.pitch-line,
.pitch-corner {
  fill: none;
  stroke: rgba(255, 250, 235, 0.68);
  stroke-width: 0.8;
}

.pitch-dot {
  fill: rgba(255, 250, 235, 0.82);
}

.position-marker circle {
  stroke: rgba(255, 250, 235, 0.92);
  stroke-width: 0.9;
  filter: drop-shadow(0 2px 4px rgba(34, 25, 15, 0.24));
}

.position-marker text {
  pointer-events: none;
}

.position-marker .position-value {
  fill: #fffdf4;
  stroke: rgba(54, 37, 20, 0.25);
  stroke-width: 0.22px;
  paint-order: stroke fill;
  font-size: 5.6px;
  font-weight: 900;
}

.position-marker .position-label {
  fill: rgba(255, 250, 235, 0.9);
  stroke: rgba(54, 37, 20, 0.22);
  stroke-width: 0.18px;
  paint-order: stroke fill;
  font-size: 4.4px;
  font-weight: 900;
}

.position-marker.low circle {
  fill: #c94f46;
}

.position-marker.mid circle {
  fill: #d6ad36;
}

.position-marker.high circle {
  fill: #4fae59;
}

@media (max-width: 720px) {
  .home-page {
    overflow: auto;
  }

  .home-shell {
    width: min(100% - 24px, 1120px);
    min-height: 100svh;
  }

  .minimal-topbar .brand-mark,
  .home-mark {
    width: 42px;
    height: 42px;
  }

  .search-landing {
    padding: 72px 0 24px;
  }

  .search-landing h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .engine-search {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .site-subtitle {
    margin-top: -2px;
    font-size: 15px;
    line-height: 1.4;
  }

  .engine-search > button {
    width: 100%;
    min-height: 48px;
  }


  .ownership-footer {
    padding-bottom: 6px;
    line-height: 1.5;
  }
}
