/* 扑评 · Miuix（HyperOS）风格全套复刻
   色板对齐 miuix 0.9 lightColorScheme/darkColorScheme 官方默认值 */

:root {
  --bg: #f7f7f7;              /* background */
  --card: #ffffff;            /* surfaceVariant（卡片） */
  --card-high: #e8e8e8;       /* surfaceContainerHigh */
  --chip-bg: rgba(0, 0, 0, 0.045);
  --chip-bg-strong: rgba(0, 0, 0, 0.055);
  --primary: #3482ff;
  --primary-10: rgba(52, 130, 255, 0.1);
  --primary-14: rgba(52, 130, 255, 0.14);
  --error: #e94634;
  --on-surface: #000000;
  --summary: rgba(0, 0, 0, 0.6);        /* onSurfaceVariantSummary */
  --summary-2: #959595;                 /* onSurfaceContainerVariant */
  --divider: #e0e0e0;
  --hot-bg: #fff5e3;                    /* 热评黄条（light） */
  --radius-card: 16px;
  --radius-hero: 20px;
  --radius-comment: 18px;
  --nav-h: 62px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #242424;
    --card: #000000;          /* dark surface = 黑卡 */
    --card-high: #242424;
    --chip-bg: rgba(255, 255, 255, 0.05);
    --chip-bg-strong: rgba(255, 255, 255, 0.06);
    --primary: #277af7;
    --primary-10: rgba(39, 122, 247, 0.14);
    --primary-14: rgba(39, 122, 247, 0.2);
    --error: #f12522;
    --on-surface: #f2f2f2;
    --summary: rgba(255, 255, 255, 0.5);
    --summary-2: #737373;
    --divider: #313131;
    --hot-bg: #382f20;        /* 热评黄条（dark） */
  }
}

html[data-theme="dark"] {
  --bg: #242424;
  --card: #000000;
  --card-high: #242424;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-bg-strong: rgba(255, 255, 255, 0.06);
  --primary: #277af7;
  --primary-10: rgba(39, 122, 247, 0.14);
  --primary-14: rgba(39, 122, 247, 0.2);
  --error: #f12522;
  --on-surface: #f2f2f2;
  --summary: rgba(255, 255, 255, 0.5);
  --summary-2: #737373;
  --divider: #313131;
  --hot-bg: #382f20;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--on-surface);
  font-family: "MiSans", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; }

/* ---------- 应用壳：手机宽度居中 ---------- */

.app-shell {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.page {
  padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  animation: page-in 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- PageHeading ---------- */

.page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
}

.page-heading .titles { flex: 1; min-width: 0; }

.page-heading h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.page-heading .summary {
  font-size: 13px;
  color: var(--summary);
  margin-top: 2px;
}

.icon-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--on-surface);
  transition: transform 0.15s;
}

.icon-btn:active { transform: scale(0.92); }

.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Miuix 卡片基类 ---------- */

.miuix-card {
  background: var(--card);
  border-radius: var(--radius-card);
  margin: 0 16px;
}

/* ---------- 日期条 ScheduleDayBand ---------- */

.day-band {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 29px 8px;
  font-size: 13px;
  font-weight: 700;
}

.day-band .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.day-band .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--summary);
}

/* ---------- 赛程卡 HupuScheduleMatchCard（三列） ---------- */

.sched-card {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--card);
  border-radius: var(--radius-card);
  margin: 4px 16px;
  padding: 13px 14px;
  transition: transform 0.15s;
}

.sched-card:active { transform: scale(0.985); }

.sched-left {
  width: 76px;
  flex: none;
}

.sched-left .time {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sched-left .league {
  font-size: 12px;
  color: var(--summary);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sched-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 10px;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-logo {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--card-high);
  object-fit: contain;
  padding: 3px;
}

.team-line .tname {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-line .tname.win { font-weight: 700; }
.team-line .tname.loser { color: var(--summary); }

.team-line .tscore {
  width: 36px;
  flex: none;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.team-line .tscore.loser { color: var(--summary); font-weight: 500; }

.sched-divider {
  width: 1px;
  height: 54px;
  flex: none;
  background: var(--summary);
  opacity: 0.22;
}

.sched-right {
  width: 84px;
  flex: none;
  margin-left: 10px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sched-right .status {
  font-size: 13px;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-right .status.live { color: var(--error); font-weight: 700; }
.sched-right .status.finished { color: var(--summary); }

.sched-right .scorecount {
  font-size: 11px;
  color: var(--summary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 返回栏 ---------- */

.back-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
}

.back-bar button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--on-surface);
}

.back-bar svg { width: 20px; height: 20px; }

.back-bar .back-title {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 比分头部 MatchHero ---------- */

.match-hero {
  background: var(--card);
  border-radius: var(--radius-hero);
  margin: 8px 16px 4px;
  padding: 16px;
  text-align: center;
}

.match-hero .league {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.match-hero .sub {
  font-size: 13px;
  color: var(--summary);
  margin-top: 2px;
}

.hero-teams {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding-bottom: 2px;
}

.hero-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hero-team .logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card-high);
  object-fit: contain;
  padding: 4px;
}

.hero-team .name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-score-wrap {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-score {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hero-live-tag {
  font-size: 12px;
  font-weight: 500;
  background: var(--chip-bg-strong);
  border-radius: 5px;
  padding: 3px 8px;
}

.hero-current {
  font-size: 12px;
  color: var(--summary);
}

.hero-current b { color: var(--primary); }

/* ---------- 分段控件 DetailTabs ---------- */

/* PAGE 式（评分|数据）：底部蓝色指示条 */
.page-tabs {
  display: flex;
  margin-top: 10px;
  border-bottom: 1px solid var(--divider);
  padding: 0 16px;
}

.page-tab {
  flex: 1;
  position: relative;
  padding: 12px 8px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--summary);
  transition: color 0.25s;
}

.page-tab.active { color: var(--on-surface); }

.page-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1px;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.25s;
}

.page-tab.active::after { opacity: 1; }

/* MAP 式（第1局 chips 横滚） */
.map-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 10px;
  scrollbar-width: none;
}

.map-tabs::-webkit-scrollbar { display: none; }

.map-tab {
  flex: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--summary);
  background: var(--chip-bg);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.map-tab.active {
  color: var(--primary);
  background: var(--primary-10);
  border-color: var(--primary);
}

/* TEAM 式（队伍切换胶囊） */
.team-tabs {
  display: flex;
  gap: 4px;
  margin: 4px 16px 8px;
  padding: 4px;
  border-radius: 16px;
  background: var(--chip-bg-strong);
}

.team-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--summary);
  transition: all 0.2s;
  overflow: hidden;
}

.team-tab.active {
  background: var(--card);
  color: var(--on-surface);
}

.team-tab img { width: 26px; height: 26px; object-fit: contain; }

/* 排序 chips */
.order-row {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 2px 16px 6px;
}

.order-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--summary);
}

.order-chip.active { color: var(--primary); font-weight: 600; }

/* ---------- 选手评分卡 MatchRatingPlayerCard ---------- */

.player-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border-radius: var(--radius-card);
  margin: 0 16px 8px;
  padding: 12px;
  transition: transform 0.15s;
}

.player-card:active { transform: scale(0.985); }

.player-row { display: flex; align-items: center; }

.portrait {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
}

.portrait .ava {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: var(--card-high);
}

.portrait .champ {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--card);
  padding: 2px;
  object-fit: cover;
}

.portrait .ava-fallback {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: var(--card-high);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.player-info {
  flex: 1;
  min-width: 0;
  margin: 0 10px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.player-desc {
  font-size: 11px;
  color: var(--summary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-label {
  flex: none;
  font-size: 10px;
  color: var(--summary);
  background: var(--chip-bg-strong);
  border-radius: 8px;
  padding: 2px 7px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-score-col {
  flex: none;
  text-align: right;
}

.player-score {
  font-size: 23px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.player-count {
  font-size: 10px;
  color: var(--summary);
}

.hot-comment {
  margin-top: 7px;
  background: var(--hot-bg);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 选手评分榜（数据页） ---------- */

.board-card {
  background: var(--card);
  border-radius: var(--radius-card);
  margin: 0 16px 8px;
  padding: 6px 14px;
}

.board-head {
  display: flex;
  align-items: center;
  padding: 10px 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.board-head .n { color: var(--summary); font-weight: 400; font-size: 11px; margin-left: 8px; }

.board-row {
  display: grid;
  grid-template-columns: 34px 40px 1fr 56px 52px;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--divider);
  font-size: 14px;
}

.board-row:first-of-type { border-top: none; }

.board-pos {
  font-size: 11px;
  color: var(--summary);
  text-align: center;
}

.board-ava {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--card-high);
}

.board-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-score {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.board-n {
  font-size: 10px;
  color: var(--summary);
  text-align: right;
}

/* ---------- 评分页头部（ScoreRing） ---------- */

.target-hero {
  background: var(--card);
  border-radius: var(--radius-hero);
  margin: 8px 16px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
}

.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }

.score-ring .num {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.target-hero .info { flex: 1; min-width: 0; }

.target-hero .name {
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-hero .count {
  font-size: 12px;
  color: var(--summary);
  margin-top: 2px;
}

.target-hero .champ-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--summary);
  background: var(--chip-bg);
  border-radius: 8px;
  padding: 3px 8px;
}

.target-hero .champ-tag img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }

/* 评分分布条 */
.dist-card {
  background: var(--card);
  border-radius: var(--radius-card);
  margin: 0 16px 8px;
  padding: 14px 16px;
}

.dist-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }

.dist-row {
  display: grid;
  grid-template-columns: 30px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 11px;
  color: var(--summary);
  font-variant-numeric: tabular-nums;
}

.dist-track {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--chip-bg-strong);
  overflow: hidden;
}

.dist-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- 评论 TabRow（flatTabRow：白底选中） ---------- */

.flat-tabs {
  display: flex;
  gap: 4px;
  margin: 6px 16px 10px;
  padding: 4px;
  border-radius: 14px;
  background: var(--chip-bg-strong);
}

.flat-tab {
  flex: 1;
  padding: 7px 0;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--summary);
  transition: all 0.2s;
}

.flat-tab.active {
  background: var(--card);
  color: #181818;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .flat-tab.active { color: var(--on-surface); }
}

html[data-theme="dark"] .flat-tab.active { color: var(--on-surface); }

/* 页面滚动条细化 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 评论卡 PlayerCommentCard ---------- */

.comment-card {
  background: var(--card);
  border-radius: var(--radius-comment);
  margin: 0 16px 12px;
  padding: 14px;
}

.comment-row { display: flex; }

.c-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card-high);
}

.c-avatar-fallback {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--card-high);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.c-main {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.c-head {
  display: flex;
  align-items: center;
  gap: 5px;
}

.c-author {
  font-size: 12px;
  color: var(--summary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
}

.c-badge {
  flex: none;
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-10);
  border-radius: 5px;
  padding: 1px 5px;
}

.c-like {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--summary);
  padding: 4px 0;
}

.c-like svg { width: 15px; height: 15px; }

.c-like.liked { color: var(--primary); }

.c-content {
  font-size: 14px;
  word-break: break-word;
  white-space: pre-wrap;
}

.c-imgs { display: flex; gap: 8px; flex-wrap: wrap; }

.c-imgs img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 9px;
  cursor: zoom-in;
  background: var(--card-high);
}

.c-meta { font-size: 10px; color: var(--summary); }

.reply-block {
  margin: 7px 0 0 44px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reply-block .r-text {
  font-size: 12px;
  color: var(--summary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reply-block .r-more {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--primary);
}

.reply-block .r-more svg { width: 14px; height: 14px; }

.load-more {
  display: block;
  width: calc(100% - 32px);
  margin: 2px 16px 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  color: var(--summary);
  font-size: 14px;
  text-align: center;
}

.load-more:disabled { opacity: 0.5; }

/* ---------- 通用状态 ---------- */

.miuix-skeleton {
  height: 96px;
  border-radius: var(--radius-card);
  margin: 8px 16px;
  background: linear-gradient(100deg, var(--card) 40%, var(--card-high) 50%, var(--card) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.state-box {
  text-align: center;
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.state-box .miao {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-10);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.state-box .t { font-size: 16px; font-weight: 700; }

.state-box .s { font-size: 14px; color: var(--summary); }

.state-box button {
  margin-top: 6px;
  padding: 8px 22px;
  border-radius: 99px;
  background: var(--primary-10);
  color: var(--primary);
  font-size: 14px;
}

/* ---------- 底部导航 NavigationBar ---------- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--card);
  z-index: 50;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--summary);
  font-size: 11px;
  padding-top: 9px;
}

.nav-item svg { width: 24px; height: 24px; }

.nav-item.active { color: var(--primary); font-weight: 600; }

/* ---------- 订阅管理 / 我的页 ---------- */

.profile-card {
  background: var(--card);
  border-radius: var(--radius-card);
  margin: 8px 16px;
  padding: 16px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-logo {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
}

.profile-head .name { font-size: 20px; font-weight: 700; }

.profile-head .sub { font-size: 12px; color: var(--summary); margin-top: 2px; }

.section-heading {
  display: flex;
  align-items: center;
  padding: 22px 20px 10px;
}

.section-heading .t {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.section-heading .action { font-size: 13px; color: var(--primary); }

.sub-group-title {
  font-size: 12px;
  color: var(--summary);
  padding: 10px 32px 6px;
  font-weight: 600;
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  padding: 0 16px;
}

.sub-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 12px;
  background: var(--chip-bg);
  font-size: 13px;
  color: var(--summary);
  transition: all 0.2s;
}

.sub-chip.on {
  background: var(--primary-10);
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.about-list { padding: 4px 0; }

.about-item {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  font-size: 15px;
}

.about-item + .about-item { border-top: 1px solid var(--divider); }

.about-item .hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--summary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.about-item .hint svg { width: 14px; height: 14px; }

.foot-note {
  text-align: center;
  font-size: 11px;
  color: var(--summary);
  padding: 18px 20px 6px;
  line-height: 1.7;
}

/* ---------- toast / lightbox ---------- */

.miuix-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--card);
  color: var(--on-surface);
  border-radius: 18px;
  padding: 12px 18px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  max-width: 86vw;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  cursor: zoom-out;
  padding: 20px;
}

.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

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