/* ==========================================================================
   匹克星球 · Pickball Planet — design system
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-soft: #0d0d10;
  --surface: #121215;
  --surface-2: #19191d;
  --surface-3: #212127;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f3ef;
  --muted: #9a9aa4;
  --muted-2: #6b6b76;
  --yellow: #ffd60a;
  --yellow-2: #ffc300;
  --yellow-dim: rgba(255, 214, 10, 0.12);
  --green: #35d399;
  --green-dim: rgba(53, 211, 153, 0.13);
  --red: #ff6b6b;
  --red-dim: rgba(255, 107, 107, 0.12);
  --radius: 20px;
  --radius-lg: 26px;
  --radius-sm: 13px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1000px 560px at 12% -12%, rgba(255, 214, 10, 0.07), transparent 62%),
    radial-gradient(720px 420px at 92% 8%, rgba(53, 211, 153, 0.045), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 214, 10, 0.85); color: #141200; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------- layout */
.app { display: flex; min-height: 100dvh; }

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.sidebar { display: none; }

.view {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 4px 16px calc(96px + var(--safe-b));
}

/* --------------------------------------------------------------- sidebar */
.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--yellow), #f5b800);
  color: #171200;
  box-shadow: 0 8px 22px rgba(255, 200, 0, 0.22);
}
.brand-mark .icon { width: 23px; height: 23px; stroke-width: 1.6; }
.brand-user { display: flex; flex-direction: column; line-height: 1.15; }
.brand-user strong { font-size: 15.5px; letter-spacing: 0.02em; font-weight: 700; }
.brand-user span {
  font-size: 9.5px;
  letter-spacing: 0.19em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  width: 100%;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.nav-item .icon { width: 19px; height: 19px; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-item.is-on {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: rgba(255, 214, 10, 0.18);
}
.nav-item.is-on .nav-dot { opacity: 1; }
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  margin-left: auto;
  opacity: 0;
}

.sidebar-foot { margin-top: auto; padding-top: 18px; }

.storage-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 15px;
  padding: 12px 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.storage-card .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 211, 153, 0.12);
  margin-top: 5px;
  flex: 0 0 auto;
}
.storage-card strong { display: block; font-size: 11.5px; font-weight: 600; }
.storage-card span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

/* --------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 9px;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.95) 40%, rgba(8, 8, 10, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-brand { display: flex; align-items: center; gap: 9px; }
.topbar-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.topbar-brand .brand-mark .icon { width: 19px; height: 19px; }
.topbar-brand strong { font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 211, 153, 0.1);
}
.pill.warn .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(140deg, var(--yellow), #ff9f0a);
  color: #1b1400;
  border: 1px solid rgba(255, 214, 10, 0.35);
  flex: 0 0 auto;
}
.avatar.sm { width: 25px; height: 25px; font-size: 10px; }
.avatar.lg { width: 50px; height: 50px; font-size: 18px; }
.avatar.alt { background: linear-gradient(140deg, #3a3a42, #232329); color: var(--text); border-color: var(--line-strong); }
.avatar.green { background: linear-gradient(140deg, var(--green), #0f9d6b); color: #04140d; }

.avatar-btn {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn .icon { width: 17px; height: 17px; }
.icon-btn.is-on { color: var(--yellow); border-color: rgba(255, 214, 10, 0.3); background: var(--yellow-dim); }

/* --------------------------------------------------------------- tabbar */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  padding: 5px 6px calc(5px + var(--safe-b));
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 5px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  transition: color 0.18s;
}
.tab .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.tab.is-on { color: var(--yellow); }
.tab.is-on .icon { stroke-width: 2; }
.tab:active { background: rgba(255, 255, 255, 0.04); }

/* --------------------------------------------------------------- page head */
.page-head { padding: 10px 2px 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--yellow);
  opacity: 0.7;
}

.page-head h1 {
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 9px 0 7px;
}
.page-head p { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 46ch; }

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- sections */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 11px;
}
.sec-head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sec-head .count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 1px 7px;
}
.sec-action {
  border: 0;
  background: none;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
}
.sec-action .icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------- cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0)) , var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card.tight { padding: 14px; }
.card.flat { background: var(--surface); }

.card + .card, .stack > * + * { margin-top: 10px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(420px 220px at 88% -30%, rgba(255, 214, 10, 0.22), transparent 65%),
    linear-gradient(150deg, #1b1b1f 0%, #101013 62%);
  padding: 18px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(420px 240px at 90% 0%, #000, transparent 75%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}
.badge.y { background: var(--yellow); color: #171200; }
.badge.g { background: var(--green-dim); color: var(--green); }
.badge.m { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge.o { border: 1px solid var(--line-strong); color: var(--muted); }
.badge.r { background: var(--red-dim); color: var(--red); }
.badge .icon { width: 12px; height: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  padding: 2px 7px;
  font-weight: 500;
  white-space: nowrap;
}

/* --------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--yellow);
  color: #171200;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 2; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn.ghost { background: rgba(255, 255, 255, 0.07); color: var(--text); font-weight: 600; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; }
.btn.green { background: var(--green); color: #04140d; }
.btn.sm { padding: 8px 13px; font-size: 12px; }
.btn.sm .icon { width: 14px; height: 14px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; border: 1px solid rgba(255, 107, 107, 0.35); color: var(--red); }
.btn.link { background: none; color: var(--yellow); padding: 6px 0; font-weight: 600; }

/* --------------------------------------------------------------- chips */
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.flush { padding-bottom: 2px; }

.chip {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-on {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #171200;
}
.chip.is-on:hover { color: #171200; }

/* --------------------------------------------------------------- progress */
.track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--yellow), #ffb703);
  transition: width 0.4s ease;
}
.track > i.green { background: linear-gradient(90deg, var(--green), #12b981); }
.track.thin { height: 3px; }

/* --------------------------------------------------------------- rows / utils */
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: 0.01em; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

.stack-sm > * + * { margin-top: 8px; }

/* --------------------------------------------------------------- stats / hero */
.hero-top { display: flex; align-items: center; gap: 12px; }
.hero-id { min-width: 0; }
.hero-id h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-id p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.metric {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 11px;
}
.metric b {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.metric b small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.metric span { font-size: 10.5px; color: var(--muted); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.kpi {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 13px 14px;
  position: relative;
  overflow: hidden;
}
.kpi .kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.kpi .kpi-label .icon { width: 13px; height: 13px; color: var(--yellow); }
.kpi b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi b small { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi .kpi-sub { font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }
.kpi .kpi-sub.up { color: var(--green); }

/* --------------------------------------------------------------- chart card */
.chart-card { padding: 15px 15px 12px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.chart-head h3 { font-size: 13.5px; font-weight: 700; }
.chart-head p { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.chart-head .badge { margin-top: 1px; }
.chart-body svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 12px; padding: 8px 2px 2px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.chart-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--yellow); }

/* --------------------------------------------------------------- session card */
.s-card { padding: 0; overflow: hidden; }
.s-card > .s-in { padding: 15px 15px 13px; }
.s-card { cursor: pointer; transition: border-color 0.18s, transform 0.18s; }
.s-card:hover { border-color: var(--line-strong); }
.s-card.is-ended { opacity: 0.62; }
.s-card.is-ended:hover { opacity: 0.8; }

.s-head { display: flex; gap: 12px; align-items: flex-start; }
.s-date {
  width: 48px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(255, 214, 10, 0.09);
  border: 1px solid rgba(255, 214, 10, 0.16);
  text-align: center;
  padding: 7px 0 6px;
}
.s-date b { display: block; font-size: 19px; font-weight: 700; line-height: 1.1; color: var(--yellow); }
.s-date span { display: block; font-size: 9.5px; color: rgba(255, 214, 10, 0.72); margin-top: 2px; }
.s-date.ended { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.s-date.ended b { color: var(--muted); }
.s-date.ended span { color: var(--muted-2); }

.s-body { min-width: 0; flex: 1; }
.s-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.s-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
  flex-wrap: wrap;
}
.s-meta .icon { width: 13px; height: 13px; color: var(--muted-2); }
.s-meta .sep { color: var(--muted-2); }

.s-tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }

.s-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.stack-avatars { display: flex; align-items: center; }
.stack-avatars .avatar { width: 24px; height: 24px; font-size: 9.5px; margin-left: -7px; }
.stack-avatars .avatar:first-child { margin-left: 0; }

.s-cap { font-size: 11px; color: var(--muted); white-space: nowrap; }
.s-cap b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.s-cap.is-full b { color: var(--yellow); }
.s-progress { margin: 10px 0 0; }

/* --------------------------------------------------------------- venue card */
.v-card { cursor: pointer; transition: border-color 0.18s; }
.v-card:hover { border-color: var(--line-strong); }
.v-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.v-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.v-addr { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.v-addr .icon { width: 12px; height: 12px; color: var(--muted-2); }
.v-addr .dist { color: var(--green); font-weight: 600; }
.v-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.v-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.v-foot .icon { width: 13px; height: 13px; }
.v-foot .item { display: inline-flex; align-items: center; gap: 4px; }
.v-price { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--yellow); }
.v-price small { font-size: 10px; color: var(--muted-2); font-weight: 500; margin-left: 1px; }
.v-price.free { color: var(--green); }
.v-rating { color: var(--yellow); display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.v-rating em { color: var(--muted-2); font-style: normal; font-weight: 400; }

/* --------------------------------------------------------------- search */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.16s;
}
.search:focus-within { border-color: rgba(255, 214, 10, 0.45); }
.search .icon { width: 17px; height: 17px; color: var(--muted-2); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
}
.search input::placeholder { color: var(--muted-2); }
.search-clear {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.search-clear .icon { width: 12px; height: 12px; }

/* --------------------------------------------------------------- rules */
.court-card { padding: 15px; }
.court-card h3 { font-size: 13.5px; font-weight: 700; }
.court-card p { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.rules-main { max-width: 100%; }
@media (min-width: 1024px) {
  .rules-main { max-width: 920px; }
}
.court-svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 8px auto 0; }

.rule {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s;
}
.rule + .rule { margin-top: 8px; }
.rule.is-open { border-color: rgba(255, 214, 10, 0.28); }

.rule-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  text-align: left;
}
.rule-idx {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rule.is-open .rule-idx { background: var(--yellow-dim); color: var(--yellow); }
.rule-t { min-width: 0; flex: 1; }
.rule-t b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.rule-t span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule-chev { color: var(--muted-2); transition: transform 0.22s ease; }
.rule-chev .icon { width: 16px; height: 16px; }
.rule.is-open .rule-chev { transform: rotate(180deg); color: var(--yellow); }

.rule-body {
  display: none;
  padding: 0 14px 14px 51px;
}
.rule.is-open .rule-body { display: block; }
.rule-body ul { margin: 0; padding: 0; list-style: none; }
.rule-body li {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9c9cf;
}
.rule-body li + li { margin-top: 4px; }
.rule-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 214, 10, 0.6);
}
.rule-body li b { color: var(--yellow); font-weight: 600; }
.rule-tip {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(53, 211, 153, 0.07);
  border: 1px solid rgba(53, 211, 153, 0.16);
  font-size: 11.5px;
  line-height: 1.6;
  color: #b7e7d4;
}
.rule-tip b { color: var(--green); }

/* --------------------------------------------------------------- match list */
.match {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
}
.match + .match { border-top: 1px solid var(--line); }
.match-date { width: 46px; flex: 0 0 auto; }
.match-date b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.match-date span { font-size: 9.5px; color: var(--muted-2); }
.match-main { flex: 1; min-width: 0; }
.match-main b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-main span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.match-score {
  text-align: right;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.match-score b { display: block; font-size: 12.5px; font-weight: 700; }
.match-score span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.match-score .win { color: var(--green); }
.match-score .loss { color: var(--red); }

.result-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.result-dot.win { background: var(--green); box-shadow: 0 0 0 3px rgba(53, 211, 153, 0.12); }
.result-dot.loss { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1); }

.dot-row { display: flex; gap: 5px; flex-wrap: wrap; }
.dot-row .d { width: 17px; height: 17px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.dot-row .d.w { background: rgba(53, 211, 153, 0.16); color: var(--green); }
.dot-row .d.l { background: rgba(255, 107, 107, 0.13); color: var(--red); }

/* --------------------------------------------------------------- admin */
.usage-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.usage-row .u-label { width: 62px; flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
.usage-row .u-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.usage-row .u-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 214, 10, 0.55), var(--yellow)); border-radius: 99px; }
.usage-row .u-val { width: 52px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.usage-row .icon { width: 13px; height: 13px; color: var(--yellow); }

.activity-item { display: flex; gap: 10px; padding: 9px 0; align-items: flex-start; }
.activity-item + .activity-item { border-top: 1px solid var(--line); }
.activity-item .a-text { flex: 1; min-width: 0; }
.activity-item .a-text b { font-weight: 600; }
.activity-item .a-text p { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item .a-time { font-size: 10px; color: var(--muted-2); white-space: nowrap; margin-top: 2px; }

/* --------------------------------------------------------------- empty */
.empty {
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty .icon { width: 30px; height: 30px; color: var(--muted-2); margin-bottom: 10px; }
.empty b { display: block; font-size: 13px; color: var(--text); }
.empty p { font-size: 11.5px; margin-top: 4px; }

/* --------------------------------------------------------------- sheet */
.sheet-root { position: relative; z-index: 80; }
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.18s ease;
}
.sheet {
  width: 100%;
  max-width: 540px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: #151518;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  animation: slideUp 0.26s cubic-bezier(0.22, 0.8, 0.3, 1);
  padding-bottom: var(--safe-b);
}
.sheet-grab {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  margin: 8px auto 0;
  flex: 0 0 auto;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px;
  flex: 0 0 auto;
}
.sheet-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.sheet-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.sheet-head .icon-btn { margin-left: auto; flex: 0 0 auto; }
.sheet-body {
  padding: 4px 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-foot {
  padding: 10px 18px 16px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}
.sheet-foot .btn { flex: 1; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }

/* --------------------------------------------------------------- forms */
.field { margin-top: 12px; }
.field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s;
  appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(255, 214, 10, 0.5);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { resize: vertical; min-height: 64px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.field select option { background: #1b1b1f; color: var(--text); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-grid .field { margin-top: 12px; }

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.seg button.is-on { background: var(--yellow); color: #171200; }

/* --------------------------------------------------------------- detail sheet bits */
.ds-hero { display: flex; gap: 13px; align-items: flex-start; padding: 4px 0 14px; }
.ds-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--yellow-dim);
  border: 1px solid rgba(255, 214, 10, 0.2);
  display: grid;
  place-items: center;
  color: var(--yellow);
  flex: 0 0 auto;
}
.ds-icon .icon { width: 25px; height: 25px; }
.ds-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.ds-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.info-cell {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
}
.info-cell span { display: block; font-size: 10px; color: var(--muted-2); }
.info-cell b { display: block; font-size: 13px; font-weight: 600; margin-top: 3px; line-height: 1.4; }

.roster { display: flex; flex-wrap: wrap; gap: 6px; }
.person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-size: 11.5px;
}
.person .avatar { width: 21px; height: 21px; font-size: 9px; border: 0; }
.person em { font-style: normal; font-size: 9.5px; color: var(--muted-2); }
.person.me { border-color: rgba(255, 214, 10, 0.3); background: var(--yellow-dim); }

.note-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

/* --------------------------------------------------------------- toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(82px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 88vw;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(28, 28, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  font-weight: 600;
  animation: toastIn 0.24s ease;
}
.toast .icon { width: 15px; height: 15px; color: var(--yellow); }
.toast.ok .icon { color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ================================================================ desktop */
@media (min-width: 1024px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    width: 248px;
    flex: 0 0 248px;
    height: 100dvh;
    position: sticky;
    top: 0;
    padding: 26px 18px 22px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.012);
  }
  .topbar { padding: 20px 34px 6px; background: none; backdrop-filter: none; }
  .topbar-brand { display: none; }
  .topbar { justify-content: flex-end; }
  .topbar-actions { gap: 10px; }
  .view { max-width: 1140px; padding: 6px 34px 60px; }
  .tabbar { display: none; }
  .toast-wrap { bottom: 32px; }
  .page-head { padding: 14px 2px 22px; }
  .page-head h1 { font-size: 34px; }
  .page-head p { font-size: 13.5px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 11px; }
  .kpi b { font-size: 27px; }
  .s-list, .v-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: start; }
  .s-list .s-card + .s-card, .v-list .v-card + .v-card { margin-top: 0; }
  .card + .card { margin-top: 12px; }
  .chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: start; }
  .chart-grid .card + .card { margin-top: 0; }
  .sheet-overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); max-height: 86dvh; animation: pop 0.22s ease; }
  .sheet-foot { padding-bottom: 18px; }
  .toast-wrap { bottom: 32px; }
  @keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(6px); } to { opacity: 1; transform: none; } }
}

@media (min-width: 1360px) {
  .view { max-width: 1240px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ================================================================ additions */
.sheet-overlay.is-layer { z-index: 95; }
.confirm-sheet { max-width: 420px; }

/* 球局概览与筛选 */
.overview-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  padding: 2px 2px 12px;
  font-size: 12px;
  color: var(--muted);
}
.overview-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.overview-line .dot-sep { color: var(--muted-2); }
.overview-line em { color: var(--green); font-style: normal; font-weight: 600; }

.filter-row { display: flex; align-items: flex-start; gap: 8px; }
.filter-row .chips { flex: 1; min-width: 0; }

/* 场地：定位与地图入口 */
.venue-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.venue-tools .chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  height: auto;
  padding: 6px 13px;
  color: var(--fg);
}
.venue-tools .chip .icon { width: 15px; height: 15px; }
.venue-tools .chip.is-on { border-color: rgba(255, 214, 10, 0.42); color: var(--yellow); }
.venue-tools .chip[disabled] { opacity: 0.6; }
.venue-tools .geo-tip { font-size: 11px; color: var(--muted-2); }
.filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-btn .icon { width: 15px; height: 15px; }
.filter-btn.is-on { color: var(--yellow); border-color: rgba(255, 214, 10, 0.4); background: var(--yellow-dim); }
.filter-btn .fcount {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--yellow);
  color: #171200;
  font-size: 10px;
  display: inline-grid;
  place-items: center;
}
.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 2px 9px;
}
.group-head h2 { font-size: 14.5px; font-weight: 700; }
.group-head .count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 1px 7px;
}
.group-head .g-line { flex: 1; height: 1px; background: var(--line); }
.ended-toggle {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.ended-toggle .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.ended-toggle.is-open .icon { transform: rotate(180deg); }

/* 抽屉内选项（排序 / 筛选） */
.opt-list { margin: 0 -4px; }
.opt-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 13px;
  color: var(--text);
}
.opt-row:last-child { border-bottom: 0; }
.opt-row .opt-sub { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.radio {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  margin-left: auto;
  flex: 0 0 auto;
  position: relative;
}
.opt-row.is-on .radio { border-color: var(--yellow); }
.opt-row.is-on .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--yellow);
}
.opt-row.is-on { color: var(--yellow); }

/* 小测验 */
.quiz-card { display: flex; align-items: center; gap: 14px; }
.quiz-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--yellow-dim);
  border: 1px solid rgba(255, 214, 10, 0.22);
  color: var(--yellow);
}
.quiz-badge .icon { width: 26px; height: 26px; }
.quiz-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.quiz-card p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.quiz-progress { display: flex; gap: 5px; margin: 2px 0 14px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.quiz-progress i.on { background: var(--yellow); }
.quiz-progress i.done { background: rgba(53, 211, 153, 0.72); }

.quiz-q { font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; }
.quiz-cat { font-size: 10px; color: var(--yellow); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 12.8px;
  line-height: 1.5;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: rgba(255, 255, 255, 0.2); }
.quiz-opt .k {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 1px;
}
.quiz-opt.is-correct { border-color: rgba(53, 211, 153, 0.5); background: var(--green-dim); }
.quiz-opt.is-correct .k { background: var(--green); color: #04140d; }
.quiz-opt.is-wrong { border-color: rgba(255, 107, 107, 0.5); background: var(--red-dim); }
.quiz-opt.is-wrong .k { background: var(--red); color: #1d0505; }
.quiz-opt.is-locked { cursor: default; }
.quiz-explain {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.quiz-explain b { color: var(--text); }
.quiz-explain .res { font-weight: 700; }
.quiz-explain .res.ok { color: var(--green); }
.quiz-explain .res.no { color: var(--red); }

.result-hero { text-align: center; padding: 8px 0 16px; }
.result-hero .medal {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--yellow-dim);
  border: 1px solid rgba(255, 214, 10, 0.25);
  color: var(--yellow);
  margin-bottom: 12px;
}
.result-hero .medal .icon { width: 34px; height: 34px; }
.result-hero h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.result-hero p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.wrong-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 13px;
  padding: 11px 12px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
}
.wrong-item b { display: block; font-size: 12.5px; }
.wrong-item span { color: var(--muted); }
.wrong-item .ans { color: var(--green); }
.wrong-item .exp { color: var(--muted); display: block; margin-top: 5px; font-size: 11.5px; }

/* 看板：球友活跃度 */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.stat-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 13px;
  padding: 10px 11px;
}
.stat-box b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-box b small { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.stat-box span { font-size: 10.5px; color: var(--muted); }

.stack-bar { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.06); margin-top: 14px; }
.stack-bar i { display: block; height: 100%; }
.stack-bar i.high { background: var(--yellow); }
.stack-bar i.regular { background: rgba(53, 211, 153, 0.8); }
.stack-bar i.casual { background: rgba(255, 255, 255, 0.22); }

.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 9px; }
.stack-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.stack-legend i { width: 7px; height: 7px; border-radius: 2px; }
.stack-legend b { color: var(--text); font-variant-numeric: tabular-nums; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.rank-row:hover .rank-name { color: var(--yellow); }
.rank-no { width: 17px; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--muted-2); text-align: center; font-variant-numeric: tabular-nums; }
.rank-row:nth-child(-n+4) .rank-no { color: var(--yellow); }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.rank-name .me { font-size: 9px; padding: 1px 5px; border-radius: 99px; background: var(--yellow); color: #171200; font-weight: 800; }
.rank-sub { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.rank-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); margin-top: 5px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 214, 10, 0.45), var(--yellow)); border-radius: 99px; }
.rank-count { flex: 0 0 auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-count small { font-size: 9.5px; color: var(--muted-2); font-weight: 500; margin-left: 1px; }

.drill-list { border-top: 1px solid var(--line); }
.drill-row { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.drill-row .dr-date { width: 44px; flex: 0 0 auto; text-align: center; }
.drill-row .dr-date b { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.drill-row .dr-date span { font-size: 9px; color: var(--muted-2); }
.drill-row .dr-main { flex: 1; min-width: 0; }
.drill-row .dr-main b { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drill-row .dr-main span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

/* 数据管理 */
.dm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dm-note { font-size: 10.5px; color: var(--muted-2); line-height: 1.65; margin-top: 10px; }

.icon-btn.is-fav { color: var(--yellow); background: var(--yellow-dim); border-color: rgba(255, 214, 10, 0.25); }
.icon-btn.is-fav .icon { fill: var(--yellow); }

.court-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.court-legend span { font-size: 10.5px; color: var(--muted-2); }
.court-legend b { color: var(--muted); font-weight: 600; }

/* 场地热度横条 */
.heat-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.heat-name {
  width: 108px;
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.heat-bar { flex: 1; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.heat-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 214, 10, 0.4), var(--yellow)); }
.heat-val { width: 40px; flex: 0 0 auto; text-align: right; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.heat-val small { color: var(--muted-2); font-weight: 400; font-size: 9.5px; margin-left: 1px; }

/* 场地资源 · 高德真实球场 */
#venuePage .seg { margin-top: 12px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button .icon { width: 14px; height: 14px; }
.seg-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.seg-dot.on { background: var(--green); }
.seg button.is-on .seg-dot { background: #171200; }

.tag.real {
  color: var(--green);
  border-color: rgba(53, 211, 153, 0.35);
  background: var(--green-dim);
}

.skeleton-card { height: 106px; margin-bottom: 0; animation: skPulse 1.1s ease-in-out infinite; }
@keyframes skPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.7; } }

.poi-map {
  height: 172px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  margin: 2px 0 6px;
}
.poi-map-tip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted-2);
}

.amap-guide { margin-top: 12px; }
.amap-guide-head { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.amap-guide-head .icon { width: 15px; height: 15px; color: var(--yellow); }
.amap-steps { margin: 8px 0 0; padding-left: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.75; }
.amap-steps li { margin-bottom: 3px; }
.amap-steps b { color: var(--text); font-weight: 600; }
.amap-steps a { color: var(--yellow); text-decoration: underline; }

.field > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

@media (max-width: 420px) {
  .poi-map { height: 148px; }
}

.rank-more {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 11px;
  padding: 9px;
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.rank-more .icon { width: 13px; height: 13px; }
@media (max-width: 1023px) { .rank-more { min-height: 44px; } }

/* 移动端触控尺寸 */
@media (max-width: 1023px) {
  .chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 15px; }
  .btn.sm { min-height: 44px; }
  .filter-btn { height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .search { height: 48px; }
}

/* 桌面双列列表 */
@media (min-width: 1024px) {
  .sess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .sess-grid > section { display: contents; }
  .sess-grid .group-head { grid-column: 1 / -1; }
  .sess-grid .ended-toggle { grid-column: 1 / -1; margin-top: 16px; }
  .venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .venue-grid .v-card { margin: 0; }
}

