:root {
  /* 灰系配色：漆黑 #151722（主色/文字）· 迷彩灰 #E3E3DB（浅色背景）· 野蔷薇 #FB9968（强调） */
  --ink: #151722;
  --sand: #E3E3DB;
  --accent: #FB9968;
  --red: #e5484d;

  --blue: #151722;        /* 主色：深色 */
  --blue-dark: #2b2f45;   /* 主色的浅一档 */
  --bg: #E3E3DB;
  --card: #ffffff;
  --text: #151722;
  --muted: #6d6d66;
  --line: #E1E1D8;
  --live: #FB9968;        /* 强调：进行中 / 分钟 / 变化提示 */
  --green: #17A05A;       /* 进行中比分（任务 010 反馈 2） */
  --fav: #e5484d;         /* 红 = 已收藏并置顶 */
}

* { box-sizing: border-box; }

/* hidden 属性始终生效（类选择器会覆盖浏览器默认样式） */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px 0;
  box-shadow: 0 2px 8px rgba(16, 42, 82, 0.18);
}

.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-size: 17px; font-weight: 600; }
.brand-tag { font-size: 11px; opacity: 0.8; }

.tabs { display: flex; gap: 4px; margin-top: 6px; }
.tabs button {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 0 9px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  border-bottom: 3px solid transparent;
}
.tabs button.on { color: #fff; font-weight: 600; border-bottom-color: #fff; }

main { padding: 8px 10px 4px; max-width: 520px; margin: 0 auto; }

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 0 2px 6px;
}
.statusbar .warn { color: #b25c00; }
.statusbar .error { color: var(--red); }

.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
}

/* 即时页筛选入口 */
.filterbar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.filter-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  max-width: 60%;
}
.filter-open #filterSummary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-open .caret { color: var(--muted); font-size: 11px; }
.filter-hint { font-size: 12px; color: var(--muted); }

.list-meta { font-size: 12px; color: var(--muted); padding: 0 2px 5px; }

/* 卡片之间更紧凑 */
.list { display: flex; flex-direction: column; gap: 5px; }
.group-title { font-size: 12px; color: var(--muted); padding: 3px 2px 0; }

/* ---------------- 比赛卡片：横向对阵（主队右 · 比分中 · 客队左，盘口分左右两半） ---------------- */
.match {
  background: var(--card);
  border-radius: 9px;
  padding: 4px 8px 5px;
  box-shadow: 0 1px 2px rgba(21, 23, 34, 0.07);
  border: 1px solid transparent;
}
.match.live { border-color: rgba(251, 153, 104, 0.55); }
.match.fav-on { border-color: rgba(229, 72, 77, 0.5); }

.m-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}
.lg-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.m-head .lg { color: var(--text); font-weight: 600; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-head .m-time { font-variant-numeric: tabular-nums; }
/* 右侧一组：角球 / 红黄牌 一起靠右（比赛状态与分钟已移到比分正上方） */
.m-head .m-right { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.m-head .corner,
.m-head .cards { display: inline-flex; align-items: center; gap: 1px; font-variant-numeric: tabular-nums; }
.m-head .corner svg { opacity: 0.7; }
.m-head .cards i {
  display: inline-block; width: 6px; height: 9px; border-radius: 1.5px; background: #f0b429; margin-right: 1px;
}
.m-head .cards.red i { background: var(--red); }

.m-body { display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.fav {
  flex: 0 0 20px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #b6b6ad;                 /* 灰色 = 未收藏 */
  font-size: 17px;                /* 箭头线条比原来稍粗（字重 + 字号） */
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
.fav.on { color: var(--fav); font-weight: 700; }   /* 红色 = 已收藏并置顶 */

.m-main { flex: 1 1 auto; min-width: 0; }

/* 一行三列：主队（右对齐）· 比分/VS（居中）· 客队（左对齐）。
   比分列左右留白把两队整体向外推开约 2 个中文字符宽度，中央位置不变。 */
.m-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.m-teams .t {
  display: flex; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0; color: var(--text);
}
.m-teams .t.home { justify-content: flex-end; }
.m-teams .t.away { justify-content: flex-start; }
/* 长队名自适应收窄、省略号截断，绝不挤出卡片 */
.m-teams .t .nm { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-teams .t .rank { color: var(--muted); font-size: 10px; font-weight: 400; flex: 0 0 auto; }

.m-score { display: flex; flex-direction: column; align-items: center; padding: 0 20px; font-variant-numeric: tabular-nums; line-height: 1.15; }
/* 比分正上方：进行中的分钟 / 完场的「完」（红色），中部/加时等无分钟时显示阶段文字 */
.m-score .m-score-top { font-size: 10px; font-weight: 700; line-height: 1.1; }
.m-score .m-score-top.live,
.m-score .m-score-top.finished { color: var(--red); }
.m-score .m-score-top.cancelled { color: var(--muted); font-weight: 400; }
.m-score-main { display: block; white-space: nowrap; }
.m-score .s { font-size: 17px; font-weight: 800; }
/* 进行中比分绿色、完赛比分红色、未开始用默认文字色 */
.m-score.live .s { color: var(--green); }
.m-score.finished .s { color: var(--red); }
.m-score .dash { margin: 0 1px; color: #a8a89f; font-weight: 600; }
.m-score.live .dash, .m-score.finished .dash { color: inherit; opacity: .55; }
.m-score .vs { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }
.m-score .half { display: block; font-size: 10px; font-weight: 400; line-height: 1.1; color: var(--muted); }

/* 盘口：浅底一条，左右各半（左=让球，右=大小），中间分隔线 */
.m-odds {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 3px;
  background: #F5F5EF;
  border-radius: 6px;
  padding: 3px 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.m-odds .oh { display: flex; justify-content: center; align-items: baseline; gap: 4px; min-width: 0; }
.m-odds .oh + .oh { border-left: 1px solid var(--line); }
/* 只有单边盘口时不画中间分隔线 */
.m-odds .oh:empty + .oh { border-left: 0; }
.m-odds .oh b { font-weight: 500; color: #5c5c55; }
.m-odds .oh b.line { color: var(--accent); font-weight: 800; }

/* 变化提示：只有变化的数字短暂变色（不闪整卡） */
.changed {
  color: var(--accent) !important;
  animation: flash 0.45s ease-in-out 2;
}
@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.empty {
  background: var(--card);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.back {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ---------------- 赛事筛选（独立界面） ---------------- */
#filterPage {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.filter-title { font-size: 15px; font-weight: 600; }
.filter-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 30px 72px 12px; }
.filter-group { margin-bottom: 12px; }
.filter-group-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 6px 0; }
/* 参照原站：热门区与 A~Z 分组**统一 4 列**（反馈 9，线上球探截图核对），
   按钮内「联赛名[场次数]」紧排居中；配色仍用本站灰系 */
.hot-grid,
.lg-list {
  display: grid;
  gap: 5px;
}
.hot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lg-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lg-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
}
.lg-row.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.lg-row .lg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-row .lg-count { flex: none; font-size: 10px; opacity: .72; font-variant-numeric: tabular-nums; }
.lg-row .live-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1px 3px;
  border-radius: 0 5px 0 5px;
  background: var(--live);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
}
.filter-index {
  position: absolute;
  right: 2px;
  top: 110px;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  z-index: 2;
}
.filter-index button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  line-height: 1.1;
  padding: 0 4px;
}
.filter-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.filter-foot #filterCount { font-variant-numeric: tabular-nums; }
.filter-actions { display: inline-flex; gap: 6px; }

/* ---------------- 详情 ---------------- */
.detail-head {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px 12px;
}
.detail-head .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  opacity: 0.85;
}
/* 天气：反馈 6 / ⑭ 移回顶部对阵框右上角 */
.detail-head .meta .head-weather {
  flex: none;
  white-space: nowrap;
  opacity: 1;
  color: #fff;
}
/* 对阵框：主队左、客队右，比分/分钟居中，半场比分在主比分下方 */
.detail-head .versus { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.detail-head .versus .t { font-size: 15px; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-head .versus .t.home { text-align: right; }
.detail-head .versus .t.away { text-align: left; }
.detail-head .vs-center {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.detail-head .vs-state { font-size: 11px; font-weight: 700; color: var(--accent); }
.detail-head .vs-state.finished,
.detail-head .vs-state.live { color: #FFD3BC; }
.detail-head .vs-state.cancelled { color: rgba(255, 255, 255, .75); font-weight: 400; }
.detail-head .big-score { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-head .vs-half { font-size: 10.5px; opacity: .78; font-variant-numeric: tabular-nums; }
.detail-head .state { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.detail-head .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 9px 12px;
  box-shadow: 0 1px 3px rgba(20, 40, 70, 0.06);
}
/* 只有详情页里的卡片需要上间距；比赛卡片由列表 gap 控制，避免内外留白被撑大 */
#detail .card { margin-top: 8px; }
.card h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.card h2 .hint { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; }

/* 赛前信息：天气/场地/伤病/热点新闻分项 */
.pre-row { display: flex; gap: 8px; font-size: 13px; line-height: 1.6; padding: 3px 0; }
.pre-label {
  flex: 0 0 52px;
  color: var(--blue-dark);
  background: #F5F5EF;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  height: 20px;
  line-height: 20px;
}
.pre-value { flex: 1 1 auto; min-width: 0; }

/* 赛前新闻（反馈 5/6）：标题 + 来源媒体 · 时间，点击看原文；不转载正文 */
.news-list { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 2px; }
.news-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 0;
}
.news-item + .news-item { border-top: 1px dashed var(--line); }
.news-item .news-title { color: var(--blue-dark); }
.news-item .news-meta { font-size: 11px; color: var(--muted); }

/* 官方/预计首发：名单较长，缩小一号并允许换行，不截断、不挤压其它行 */
.pre-value.lineup { font-size: 12px; line-height: 1.5; word-break: break-word; }

/* AI模型推演（任务 012）：大白话结论 + 整卡一组赞踩，配色沿用本站灰系 */
/* 反馈 1：标题加颜色；三句结论横排一行、不换行、字号统一；去掉说明与参考线 */
.pred-card h2 { color: var(--accent); }
.pred-conclusion {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0 6px;
  /* 三句一行放得下：常规手机 11px；窄屏（如 375）按视口自动缩一点，避免被裁切 */
  font-size: min(11px, 2.82vw);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
}
.pred-conclusion-line {
  font-size: inherit;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}
.pred-note { font-size: 11px; color: var(--muted); line-height: 1.55; }
.pred-note.pred-result { font-size: 12px; color: var(--text); margin-top: 2px; }
.pred-vote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pred-vote-label { font-size: 12px; color: var(--muted); }
.pred-vote-btn {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F5F5EF;
  color: var(--blue-dark);
  cursor: pointer;
}
.pred-vote-btn.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.pred-vote-btn[disabled] { opacity: 0.6; cursor: default; }
.pred-vote-note { font-size: 11px; color: var(--muted); }

/* 重要事件：主队事件在左、客队事件在右，分钟居中；
   中场/完场等阶段行横跨两侧居中 */
.event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  font-size: 13px;
}
/* 事件行内的一侧；没有事件的那一侧用事件专用类 .blank 隐藏。
   注意：不要复用全局 .empty（整块空状态提示样式带 24px 内边距，会把每条事件撑到 50px 以上），
   这里再显式清零内边距，避免以后有别的通用类名漏进来又把行撑高。 */
.event .ev-side {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
  margin: 0;
  line-height: 1.35;
}
.event .ev-side.home { justify-content: flex-end; text-align: right; }
.event .ev-side.away { justify-content: flex-start; text-align: left; }
.event .ev-side.blank { visibility: hidden; }
/* 空白侧也保持单行高度：不换行、不撑高 */
.event .ev-side.blank,
.event .ev-side.blank > * { height: auto; white-space: nowrap; overflow: hidden; }
.event .ev-minute {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.event .mark { flex: none; }
.event .text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event .text .sub { color: var(--muted); font-size: 12px; }
.event.split {
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 0;
}

.card.compact { padding: 7px 12px 5px; }
.card.compact h2 { margin-bottom: 5px; }
.card.compact .stat { margin-bottom: 4px; }
.card.compact .stat:last-child { margin-bottom: 1px; }
.stat-top {
  display: flex; justify-content: space-between;
  font-size: 12px; line-height: 1.3; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stat-top .name { color: var(--text); font-weight: 500; }
.stat-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 2px; background: #F5F5EF; }
.stat-bar .h { background: var(--blue); }
.stat-bar .a { background: var(--accent); }

/* 盘口表格 */
.odds-sec { margin-top: 5px; }
.odds-sec + .odds-sec { margin-top: 10px; }
.odds-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500; margin-bottom: 3px;
}
.odds-title .seg button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 4px;
}
.odds-title .seg button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.odds-table th {
  color: var(--muted); font-weight: 500; font-size: 11px;
  padding: 2px 0; border-bottom: 1px solid var(--line);
}
.odds-table td { text-align: center; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.odds-table td.line { color: var(--text); font-weight: 600; }
.odds-table tr:last-child td { border-bottom: 0; }

.footer {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 12px 22px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

/* ==================== 登录 / 注册页 ==================== */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 360px;
  padding: 26px 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.auth-brand {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--ink);
}

.auth-sub {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.auth-error {
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #FDECEC;
  color: var(--red);
  font-size: 13px;
}

.auth-form label {
  display: block;
  margin-bottom: 13px;
  font-size: 12px;
  color: var(--muted);
}

.auth-form input[type="tel"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  -webkit-appearance: none;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--ink);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-check input {
  width: 16px;
  height: 16px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.auth-submit:active {
  opacity: .88;
}

.auth-alt {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.auth-alt a {
  color: var(--accent);
  text-decoration: none;
}

/* ==================== 登录后的顶部账号栏 ==================== */
.acct-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.acct-bar .acct-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .85;
}

.acct-bar .acct-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.acct-bar button,
.acct-bar a {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

/* ==================== 管理员页 ==================== */
.admin-body {
  min-height: 100vh;
  background: var(--bg);
}

.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 12px calc(30px + env(safe-area-inset-bottom));
}

.admin-msg {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #EAF6EC;
  color: #1F7A37;
  font-size: 13px;
}

.admin-card {
  margin-bottom: 14px;
  padding: 14px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink);
}

.admin-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.admin-inline {
  display: flex;
  gap: 8px;
}

.admin-inline input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.admin-inline button,
.admin-actions button {
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.admin-table th,
.admin-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-weight: 500;
}

.admin-table tr.is-me {
  background: #FAF7F2;
}

.tag-me {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
}

.admin-time {
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions form {
  display: flex;
  gap: 4px;
  margin: 0;
}

.admin-reset input {
  width: 106px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.admin-actions .admin-danger {
  border-color: var(--red);
  background: var(--red);
}

.admin-foot {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.admin-foot a {
  color: var(--accent);
  text-decoration: none;
}

/* ==================== 进球提示 ==================== */
/* 进球一方的队名短暂高亮（浅米黄），动画结束后自然恢复 */
.t.goal-flash .nm {
  animation: goalPulse 3s ease-out;
  border-radius: 4px;
}

@keyframes goalPulse {
  0% { background: #FBEEA8; }
  72% { background: #FBEEA8; }
  100% { background: transparent; }
}

/* 状态栏里的进球提醒开关 */
.sound-toggle.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 底部进球提示条 */
.goal-toast {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(21, 23, 34, .96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  animation: goalToastIn .26s ease-out;
}

@keyframes goalToastIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 左侧足球在提示条显示期间自己有动效：滚动 + 上下弹跳（不遮挡右侧文字） */
.goal-toast .goal-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 15px;
  animation: goalBallRoll 1.1s linear infinite;
}

@keyframes goalBallRoll {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(90deg); }
  50% { transform: translateY(0) rotate(180deg); }
  75% { transform: translateY(-4px) rotate(270deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

.goal-toast .goal-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.goal-toast .goal-top {
  font-size: 11px;
  color: var(--accent);
}

.goal-toast .goal-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.goal-toast .goal-score b {
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.goal-toast .goal-score span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 市场风向（用户观点统计，2026-10-11 定稿） ====================
   设计来源：preview/market-sentiment/market-sentiment.css（第一阶段设计稿）
   口径：只有登录用户可见可投；开赛全部锁定；只显示当前盘口；人数红色最醒目。 */
.ms-card { padding: 9px 12px 8px; }
.ms-card h2 { margin: 0; }

.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

.ms-seg { display: flex; gap: 6px; margin: 7px 0 1px; }
.ms-seg button {
  flex: 1 1 0; min-width: 0; padding: 4px 0;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--muted); font-size: 12px; font-family: inherit;
}
.ms-seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.ms-market { margin-top: 7px; }
.ms-mrow { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.ms-mrow .ms-line {
  font-size: 15px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ms-mrow .ms-count {
  margin-left: auto; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ms-lock {
  padding: 0 5px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}

.ms-opts { display: flex; gap: 8px; margin-top: 5px; }
.ms-opt {
  position: relative; flex: 1 1 0; min-width: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px;
  padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #F5F5EF; font-family: inherit; text-align: left;
}
.ms-opt .ms-name {
  min-width: 0; font-size: 11px; line-height: 1.3; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ms-opt .ms-figure {
  font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--red);
  text-align: center; font-variant-numeric: tabular-nums;
}
.ms-opt .ms-pct {
  font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--muted);
  text-align: right; font-variant-numeric: tabular-nums;
}
.ms-opt.on { border-color: var(--accent); background: #FDF0E8; box-shadow: inset 0 0 0 1px var(--accent); }
.ms-opt .ms-tick { display: none; position: absolute; top: 3px; right: 6px; font-size: 11px; font-weight: 700; color: var(--accent); }
.ms-opt.on .ms-tick { display: block; }
.ms-opt[disabled] { cursor: default; }
.ms-opt[disabled] .ms-name { color: var(--blue-dark); }

/* 大小球只用图形：三个球叠成三角形＝进球多，一个球＝进球少，所有球一样大 */
.ms-opt .ms-ball {
  display: inline-block; margin: 0; font-size: 11px; line-height: 1;
  filter: grayscale(1); opacity: .85;
}
.ms-balls { display: inline-flex; flex-direction: column; align-items: center; gap: 0; vertical-align: middle; }
.ms-balls .ms-ball-row { display: flex; gap: 2px; }

.ms-foot {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 11px; color: var(--muted);
}
.ms-foot .ms-grow { flex: 1 1 auto; min-width: 0; }
.ms-foot a { color: var(--accent); text-decoration: none; }
.ms-foot .ms-flash { color: var(--green); font-weight: 600; opacity: 0; transition: opacity .18s; }
.ms-foot .ms-flash.show { opacity: 1; }
.ms-foot .ms-flash.warn { color: #b25c00; }
.ms-empty { font-size: 12px; color: var(--muted); }

/* ==================== 「我的观点」 ==================== */
.mo-stats { display: flex; gap: 6px; margin: 2px 0 8px; }
.mo-stats span {
  flex: 1 1 0; padding: 6px 4px; border-radius: 8px; background: #F5F5EF;
  text-align: center; font-size: 11px; color: var(--muted);
}
.mo-stats b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-item { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.mo-item:last-child { border-bottom: 0; }
.mo-l1 { display: flex; align-items: baseline; gap: 6px; }
.mo-l1 .mo-league { flex: none; color: var(--muted); }
.mo-l1 .mo-teams {
  flex: 1 1 auto; min-width: 0; color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mo-l1 .mo-badge { flex: none; padding: 0 6px; border-radius: 999px; font-size: 11px; }
.mo-badge.pending { background: #F0F0EA; color: var(--muted); }
.mo-badge.locked { background: #FFF1E8; color: #B4602C; }
.mo-l2 { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; color: var(--muted); }
.mo-l2 .mo-pick { color: var(--ink); }
.mo-l2 .mo-pick b { font-weight: 600; }
.mo-l2 .mo-share { margin-left: auto; font-variant-numeric: tabular-nums; }
.mo-l3 { margin-top: 2px; color: var(--muted); font-size: 11px; }
.mo-ball {
  display: inline-block; margin: 0 1px; font-size: 11px; line-height: 1;
  vertical-align: -1px; filter: grayscale(1); opacity: .85;
}
