/* ============================================================
   30-mystats.css — 我的收听数据（v7.4.4）
   外壳复用 10-category-detail.css 的 .category-detail-view（滑入/头部/返回），
   这里只补内容区样式；暗色模式全部走 01-foundation.css 的变量，无需单独覆写。
   ============================================================ */

.mystats-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px var(--edge-pad, 16px) calc(env(safe-area-inset-bottom) + 40px);
}

/* 阅读页待遇（与使用手册/词典文章同款，技法见 26-dict.css「沉浸式阅读」长注）：
   进入即隐藏 tab bar 与 mini 播放器，底部空间全部还给内容；退出时 JS 摘掉 body 类恢复。 */
body.mystats-immersive #tab-bar,
body.mystats-immersive #fixed-player {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(24px) translateX(-50%);
  transition: opacity .28s ease, transform .28s ease;
}
body.mystats-immersive #tab-bar { transform: translateY(24px); }

/* 范围分段（本周 / 本月 / 今年）—— 与榜单页 .rank-seg 同一视觉语言 */
.mystats-seg { display: flex; gap: 8px; padding: 4px 0 14px; }
.mystats-seg-btn {
  border: 0; border-radius: 999px; padding: 6px 15px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--text-dark); background: rgba(120, 120, 128, 0.12);
}
.mystats-seg-btn.is-active { color: #fff; background: #ff2d55; }

/* ① 核心数字 */
.mystats-hero { padding: 18px 2px 20px; }
.mystats-hero-big { display: flex; align-items: baseline; gap: 8px; }
.mystats-hero-num {
  font-size: 56px; font-weight: 800; line-height: 1;
  letter-spacing: -1px; color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}
.mystats-hero-unit { font-size: 17px; font-weight: 600; color: var(--text-dark); opacity: .7; }
.mystats-hero-sub { margin-top: 8px; font-size: 13px; color: var(--text-dark); opacity: .55; }

/* 区块标题 */
.mystats-sec-title {
  margin: 18px 2px 8px; font-size: 13px; font-weight: 700;
  color: var(--text-dark); opacity: .5; letter-spacing: .5px;
}

/* ② 最爱电台 Top5 */
.mystats-top {
  background: var(--glass-bg); border: 0.5px solid var(--hairline);
  border-radius: 14px; overflow: hidden;
}
.mystats-top-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; position: relative;
}
.mystats-top-row:not(:last-child)::after {
  content: ''; position: absolute; left: 46px; right: 0; bottom: 0;
  height: 0.5px; background: var(--hairline);
}
.mystats-top-num {
  width: 20px; text-align: center; flex-shrink: 0;
  font-size: 14px; font-weight: 800; font-style: italic;
  color: var(--text-dark); opacity: .45;
}
.mystats-top-row:nth-child(1) .mystats-top-num { color: #ff2d55; opacity: 1; }
.mystats-top-logo {
  width: 30px; height: 30px; border-radius: 7px; object-fit: cover;
  flex-shrink: 0; background: rgba(120, 120, 128, 0.12);
}
.mystats-top-name {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 600;
  color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mystats-top-min {
  flex-shrink: 0; font-size: 13px; font-weight: 600;
  color: var(--text-dark); opacity: .55; font-variant-numeric: tabular-nums;
}

/* ③ 时段画像：24 小时柱状分布 */
.mystats-hours {
  background: var(--glass-bg); border: 0.5px solid var(--hairline);
  border-radius: 14px; padding: 14px 14px 12px;
}
.mystats-hours-bars {
  display: flex; align-items: flex-end; gap: 3px; height: 72px;
}
.mystats-hours-bar {
  flex: 1; min-width: 0; border-radius: 3px 3px 0 0;
  background: rgba(255, 45, 85, 0.30);
}
.mystats-hours-bar.is-peak { background: #ff2d55; }
.mystats-hours-axis {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 10px; color: var(--text-dark); opacity: .4;
}
.mystats-persona { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.mystats-persona-tag {
  font-size: 14px; font-weight: 800; color: #ff2d55;
}
.mystats-persona-desc { font-size: 12px; color: var(--text-dark); opacity: .55; }

/* ④ 本站足迹 */
.mystats-grid { display: flex; gap: 10px; }
.mystats-cell {
  flex: 1; text-align: center; padding: 14px 4px;
  background: var(--glass-bg); border: 0.5px solid var(--hairline);
  border-radius: 14px;
}
.mystats-cell-num {
  font-size: 24px; font-weight: 800; color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}
.mystats-cell-label { margin-top: 3px; font-size: 12px; color: var(--text-dark); opacity: .55; }

/* 空态与脚注 */
.mystats-empty {
  padding: 48px 24px; text-align: center; white-space: pre-line;
  font-size: 14px; line-height: 1.9; color: var(--text-dark); opacity: .6;
}
.mystats-foot {
  margin: 22px 2px 0; font-size: 11px; line-height: 1.7;
  color: var(--text-dark); opacity: .4;
}
