:root {
  --national-bg: #f3f6f9;
  --national-text: #0f172a;
  --national-muted: #64748b;
  --national-line: #e2e8f0;
  --national-main: #0f766e;
  --national-deep: #172033;
  --national-red: #dc2626;
  --national-green: #047857;
  --national-card: #ffffff;
  --national-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--national-text);
  background: #dfe6ee;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.national-app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--national-bg);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 0 36px rgba(15, 23, 42, .18);
}

.national-header {
  min-height: 92px;
  padding: 14px 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 54%, #172033 100%);
  color: #fff;
}

.national-back {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
}

.national-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.national-title {
  min-width: 0;
}

.national-title h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.national-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1.35;
}

.national-content {
  padding: 5px 5px 0;
}

.national-search-panel {
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, .12);
  box-shadow: var(--national-shadow);
}

.national-update {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.national-update strong {
  color: #0f766e;
  font-size: 13px;
}

.national-search {
  height: 42px;
  margin-top: 8px;
  padding: 0 11px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
}

.national-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
  stroke-linecap: round;
}

.national-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 14px;
}

.national-summary {
  margin-top: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 118, 110, .07);
  border: 1px solid rgba(15, 118, 110, .12);
  overflow-x: auto;
  white-space: nowrap;
}

.national-summary span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #475569;
  font-size: 11px;
  line-height: 1;
  font-weight: 760;
}

.national-summary strong {
  color: var(--national-main);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.national-summary i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  flex: 0 0 3px;
  background: rgba(71, 85, 105, .38);
}

.national-list-head {
  margin: 12px 2px 7px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.national-list-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.national-list-head p {
  margin: 5px 0 0;
  color: var(--national-muted);
  font-size: 12px;
}

.national-refresh {
  min-width: 58px;
  height: 32px;
  border-radius: 999px;
  color: var(--national-main);
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, .18);
  font-size: 12px;
  font-weight: 800;
}

.national-list {
  display: grid;
  gap: 7px;
}

.national-row {
  min-height: 72px;
  padding: 10px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: var(--national-shadow);
}

.national-rank {
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, .16);
  font-size: 12px;
  font-weight: 900;
}

.national-row:nth-child(1) .national-rank,
.national-row:nth-child(2) .national-rank,
.national-row:nth-child(3) .national-rank {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.national-flag {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
}

.national-flag img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, .07);
}

.national-flag-empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.national-team {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.national-team strong {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.national-team span {
  color: #64748b;
  font-size: 11px;
  line-height: 1;
  font-weight: 760;
}

.national-score {
  min-width: 66px;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.national-score strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.national-delta {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.national-delta.up {
  color: var(--national-red);
  background: #fff1f2;
}

.national-delta.down {
  color: var(--national-green);
  background: #ecfdf5;
}

.national-delta.flat {
  color: #64748b;
  background: #f1f5f9;
}

.national-empty {
  min-height: 190px;
  margin-top: 8px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.national-empty strong {
  color: #0f172a;
  font-size: 18px;
}

.national-loading {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 120;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .82);
  font-size: 13px;
  font-weight: 800;
}

.national-loading[hidden],
.national-empty[hidden] {
  display: none !important;
}
