/* ==========================================================================
   Meting Player · 设计令牌与基础布局
   配色参考：墨绿渐变头部 + 浅蓝白内容区 + 红色标签（网易云风格）
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC',
    'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;

  --header-grad: linear-gradient(152deg, #1e4d59 0%, #143541 44%, #0b1d24 100%);
  --header-glow: radial-gradient(120% 90% at 50% -20%, rgba(96, 196, 210, 0.38), transparent 62%);

  --accent: #3ea6b5;
  --accent-strong: #0e7d8c;
  --accent-soft: rgba(62, 166, 181, 0.14);
  --red: #ec4c4c;
  --gold: #e6b45a;

  /* 深底（顶栏 / Hero / 统计卡）上的前景色，避免散落硬编码 */
  --on-header: #eaf3f5;
  --on-header-bright: #eef6f8;
  --on-header-soft: #9ce6ef;
  --on-header-accent: #7fd7e2;
  --on-inverse: #0d2730;
  --on-inverse-hover: #ffffff;
  --surface-inverse: #eef6f8;
  --on-accent: #ffffff;
  --accent-strong-hover: #0c6f7c;
  --control-handle: #ffffff;
  --cover-fallback: #2a4550;
  /* 青色文字：浅色下用深一档保证对比度（4.85:1），深色下用亮一档 */
  --accent-text: var(--accent-strong);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(12, 38, 48, 0.06);
  --shadow-md: 0 14px 34px rgba(12, 38, 48, 0.14);
  --shadow-lg: 0 26px 64px rgba(6, 24, 32, 0.38);

  --mini-h: 58px;
  --tab-h: 62px;
  --top-h: 58px;

  color-scheme: light;
}

[data-theme='light'] {
  --bg: #f4f7fa;
  --bg-2: #ffffff;
  --elev: #ffffff;
  --text: #12191e;
  --text-2: #606b73;
  --text-3: #a2adb5;
  --line: rgba(16, 40, 50, 0.09);
  --chip: rgba(16, 40, 50, 0.055);
  --chip-strong: rgba(16, 40, 50, 0.1);
  --field: #f7f9fb;
  --paper: #f8f9fa;
  --paper-btn: #fdfdfe;
  --paper-line: #dde2e6;
  --paper-shadow: 0 1px 2px rgba(20, 35, 45, 0.05);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0a1317;
  --bg-2: #0f1c22;
  --elev: #12222a;
  --text: #e9f1f4;
  --text-2: #8fa1aa;
  --text-3: #63767f;
  --line: rgba(255, 255, 255, 0.08);
  --chip: rgba(255, 255, 255, 0.06);
  --chip-strong: rgba(255, 255, 255, 0.12);
  --field: #0e1c23;
  --paper: #0e1b21;
  --paper-btn: #16252d;
  --paper-line: rgba(255, 255, 255, 0.12);
  --paper-shadow: none;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.5);
  --accent-text: #6fc9d6;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 100%;
  height: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app {
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + var(--mini-h) + 30px + env(safe-area-inset-bottom));
}

/* ------------------------------- 顶栏 ----------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-grad);
  padding-top: env(safe-area-inset-top);
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--header-glow);
  pointer-events: none;
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--top-h);
  padding: 0 16px;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--on-header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 16px;
  flex: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-header-accent);
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.brand__text em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.55;
  margin-left: 3px;
  font-size: 13px;
}

.topnav {
  display: none;
  gap: 4px;
  flex: 1;
}

.topnav__link {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: rgba(234, 243, 245, 0.66);
  transition: color 0.2s ease, background 0.2s ease;
}

.topnav__link:hover {
  color: var(--on-header-bright);
  background: rgba(255, 255, 255, 0.08);
}

.topnav__link.is-active {
  color: var(--on-header-bright);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
}

.topbar__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.icon-btn--menu {
  margin-left: -8px;
}

/* ------------------------------- 内容区 --------------------------------- */

.view {
  position: relative;
  z-index: 1;
  margin-top: -14px;
  border-radius: 22px 22px 0 0;
  background: var(--bg);
  min-height: calc(100dvh - var(--top-h));
  padding-top: 6px;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.page__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.page__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 首页多个歌曲分区：≥900 并成两列（只有一个分区时不启用，见 --multi） */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--solid {
  background: var(--surface-inverse);
  color: var(--on-inverse);
}

.btn--solid:hover {
  background: var(--on-inverse-hover);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--on-header-bright);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--sm {
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

.btn--wide {
  width: 100%;
  height: 42px;
}

.btn--danger {
  color: var(--red);
  border-color: rgba(236, 76, 76, 0.35);
}

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(230, 180, 90, 0.12);
  border: 1px solid rgba(230, 180, 90, 0.3);
  color: var(--gold);
  font-size: 12.5px;
}

.notice svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ------------------------------- 封面 ---------------------------------- */

.cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: none;
  background-color: var(--cover-fallback);
  isolation: isolate;
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cover--loaded img {
  opacity: 1;
}

.cover__initial {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cover--sm {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.cover--sm .cover__initial {
  font-size: 16px;
}

.cover--square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

/* ------------------------------- 榜单卡片 ------------------------------- */
/* 参考图：一屏三张方形封面，播放量角标 + 右下播放键，说明文字在卡片下方 */

.rail {
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.chart-card {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* button 的 UA 样式是 flex-start，会让封面塌成 0 宽 */
  gap: 5px;
  min-width: 0;
  text-align: left;
  scroll-snap-align: start;
}

.chart-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--cover-fallback);
}

.chart-card__cover .cover {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.chart-card__count {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 10px);
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  background: rgba(9, 26, 33, 0.5);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  line-height: 1.35;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.chart-card__count-icon {
  width: 10px;
  height: 10px;
  flex: none;
}

.chart-card__play {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--on-inverse);
  transition: transform 0.18s ease;
}

.chart-card__play svg {
  width: 11px;
  height: 11px;
}

.chart-card:hover .chart-card__play {
  transform: scale(1.08);
}

.chart-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-card__meta {
  font-size: 10.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-card--skeleton {
  height: 132px;
  border-radius: 12px;
  background: var(--chip);
}

/* ------------------------------- 歌曲列表 ------------------------------- */

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease;
}

.track:hover {
  background: var(--chip);
}

.track__left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.track__index {
  width: 20px;
  flex: none;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.track__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.track__name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
  min-width: 0;
}

.track__artist,
.track__album {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track__album {
  color: var(--text-3);
}

@media (max-width: 639px) {
  .track__album {
    display: none;
  }
}

.track__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.track__time {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.track__play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.track__play svg {
  width: 15px;
  height: 15px;
}

.track__play:hover,
.track__play.is-playing {
  background: var(--accent-strong);
  border-color: transparent;
  color: var(--on-accent);
}

.track--skeleton {
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-2);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  flex: none;
}

.chip--hi {
  background: rgba(236, 76, 76, 0.12);
  color: var(--red);
}

.chip--warn {
  background: rgba(230, 180, 90, 0.18);
  color: var(--gold);
}

.chip--clickable {
  height: 28px;
  padding: 0 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.chip--clickable:hover {
  background: var(--chip-strong);
  color: var(--text);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 4px 2px;
  transition: color 0.18s ease;
}

.link-btn svg {
  width: 13px;
  height: 13px;
}

.link-btn:hover {
  color: var(--accent);
}

/* ------------------------------ 歌单网格 -------------------------------- */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.playlist-card__name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.playlist-card__meta {
  font-size: 11.5px;
  color: var(--text-2);
}

/* ------------------------------- 骨架屏 --------------------------------- */

.skeleton {
  background: linear-gradient(100deg, var(--chip) 30%, var(--chip-strong) 50%, var(--chip) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton--cover {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: none;
}

.skeleton--line {
  height: 11px;
  width: 60%;
}

.skeleton--short {
  width: 38%;
  height: 9px;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -40% 0;
  }
}
/* ==========================================================================
   搜索 · 设置 · 播放器 · 底部导航
   ========================================================================== */

/* -------------------------------- 搜索 --------------------------------- */

.search-page {
  gap: 18px;
}

.search-head {
  display: none;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.searchbar__icon {
  width: 19px;
  height: 19px;
  color: var(--text-3);
  flex: none;
}

.searchbar__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font-size: 14.5px;
  outline: none;
}

.searchbar__input::placeholder {
  color: var(--text-3);
}

.searchbar__input::-webkit-search-cancel-button {
  appearance: none;
}

.searchbar__submit {
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 500;
  flex: none;
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -4px;
}

.hints {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.hints::-webkit-scrollbar {
  display: none;
}

/* 搜索历史 */

.search-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-block[hidden] {
  display: none;
}

.history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history__title {
  font-size: 12.5px;
  color: var(--text-2);
}

.history__clear {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}

.history__clear:hover {
  color: var(--text);
  background: var(--chip);
}

.search-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 2px 6px 8px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-summary__play {
  margin-left: auto;
  color: var(--accent-strong);
}

.search-summary__play svg {
  width: 12px;
  height: 12px;
}

/* ------------------------------- 空状态 --------------------------------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 56px 20px;
  text-align: center;
  color: var(--text-2);
}

.empty__glyph {
  width: 46px;
  height: 46px;
  color: var(--text-3);
  margin-bottom: 6px;
  opacity: 0.8;
}

.empty__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.empty__hint {
  font-size: 13px;
  max-width: 30ch;
}

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

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--chip);
  align-self: flex-start;
  flex: none;
  max-width: 100%;
  overflow: hidden;
}

.segmented__item {
  white-space: nowrap;
}

.segmented--sm .segmented__item {
  padding: 5px 14px;
  font-size: 12.5px;
}

.segmented--md .segmented__item {
  padding: 6px 16px;
  font-size: 13px;
}

.segmented__item {
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segmented__item.is-active {
  background: var(--elev);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

[data-theme='dark'] .segmented__item.is-active {
  background: var(--paper-btn);
}

/* -------------------------------- 设置 --------------------------------- */

.settings {
  display: grid;
  gap: 14px;
  align-items: start;
}

.settings > * {
  min-width: 0;
}

.paper {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
}

.settings__side {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings__side-title {
  display: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 4px 2px;
}

.settings__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.settings__nav::-webkit-scrollbar {
  display: none;
}

.paper-btn {
  flex: 1 0 auto;
  min-width: 78px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--paper-line);
  background: var(--paper-btn);
  box-shadow: var(--paper-shadow);
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.paper-btn:hover {
  color: var(--text);
  background: var(--elev);
}

.paper-btn:active {
  transform: translateY(1px);
}

.paper-btn.is-active {
  background: var(--elev);
  color: var(--text);
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.settings__side-foot {
  display: none;
  margin-top: auto;
  padding: 10px 4px 2px;
  font-size: 11.5px;
  color: var(--text-3);
  border-top: 1px dashed var(--paper-line);
}

.settings__main {
  padding: 18px 16px 22px;
  min-width: 0;
}

.settings__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.settings__desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-2);
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row__text {
  min-width: 0;
  flex: 1 1 45%;
}

.row__label {
  font-size: 14px;
  font-weight: 500;
}

.row__hint {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-2);
  max-width: 46ch;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--chip-strong);
  border: 1px solid var(--line);
  flex: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--control-handle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.4, 1.4, 0.6, 1);
}

.switch.is-on {
  background: var(--accent-strong);
  border-color: transparent;
}

.switch.is-on::after {
  transform: translateX(20px);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 4px;
  border-radius: 999px;
  background: var(--chip-strong);
  outline: none;
  flex: none;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--elev);
  border: 3px solid var(--accent-strong);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--elev);
  border: 3px solid var(--accent-strong);
  cursor: pointer;
}

.field {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field__label {
  font-size: 13.5px;
  font-weight: 600;
}

.field__hint {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
}

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

.text-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--paper-line);
  background: var(--field);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.settings .btn--ghost {
  border-color: var(--paper-line);
  color: var(--text);
  background: var(--paper-btn);
  box-shadow: var(--paper-shadow);
}

.settings .btn--ghost:hover {
  background: var(--elev);
}

.settings .btn--solid {
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 6px 16px rgba(14, 125, 140, 0.24);
}

.settings .btn--solid:hover {
  background: var(--accent-strong-hover);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.about strong {
  color: var(--text);
}

.about code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--chip);
  color: var(--text);
}

.about__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.about__meta li::before {
  content: '·';
  margin-right: 7px;
  color: var(--text-3);
}

/* ------------------------------ 迷你播放器 ------------------------------ */

.mini {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
  z-index: 45;
  width: min(calc(100% - 24px), 620px);
  height: var(--mini-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 7px;
  border-radius: 999px;
  background: var(--elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mini:hover {
  transform: translateX(-50%) translateY(-1px);
}

.mini__progress {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--chip);
  overflow: hidden;
}

.mini__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s linear;
}

.cover--mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.cover--mini .cover__initial {
  font-size: 15px;
}

.mini__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mini__title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini__artist {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.mini__play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 4px 12px rgba(14, 125, 140, 0.35);
}

.mini__play svg {
  width: 17px;
  height: 17px;
}

.mini__queue {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
}

.mini__queue svg {
  width: 19px;
  height: 19px;
}

.mini.is-empty .mini__play {
  background: var(--chip-strong);
  color: var(--text-2);
  box-shadow: none;
}

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

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 44;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: stretch;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}

.tabbar__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 11px;
  transition: color 0.18s ease;
}

.tabbar__link.is-active {
  color: var(--text);
  font-weight: 600;
}

.tabbar__icon {
  width: 22px;
  height: 22px;
}

.tabbar__link.is-active .tabbar__icon {
  color: var(--accent-strong);
}

/* -------------------------------- 抽屉 --------------------------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 19, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--elev);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(28px);
  transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.sheet.is-open .sheet__panel {
  transform: translateY(0);
}

/* 正在播放 */

.np {
  height: min(88dvh, 760px);
  padding: 8px 20px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.np__bg {
  position: absolute;
  inset: -10%;
  background-image: var(--np-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(46px) saturate(1.5);
  opacity: 0.28;
  transition: background-image 0.4s ease;
}

.np::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--elev) 55%, transparent), var(--elev) 62%);
  pointer-events: none;
}

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

.np__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.np__head-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  text-transform: uppercase;
}

.np__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background 0.18s ease;
}

.np__icon:hover {
  background: var(--chip);
}

.np__icon svg {
  width: 20px;
  height: 20px;
}

.np__cover {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.cover--np {
  width: min(56vw, 232px);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(4, 18, 24, 0.35);
}

.np__meta {
  text-align: center;
  padding: 4px 8px 0;
}

.np__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np__artist {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np__lyrics {
  flex: 1;
  overflow-y: auto;
  min-height: 70px;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
}

.np__lyrics::-webkit-scrollbar {
  display: none;
}

.np__lyric-inner {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.np__line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.25s ease, transform 0.25s ease;
}

.np__line.is-active {
  color: var(--accent-text);
  font-weight: 600;
  transform: scale(1.02);
}

.np__line-trans {
  font-size: 12px;
  color: var(--text-3);
}

.np__lyric-hint {
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.np__progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.range--progress {
  width: 100%;
  height: 4px;
}

.np__times {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.np__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 6px;
}

.np__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color 0.18s ease, background 0.18s ease;
}

.np__btn:hover {
  background: var(--chip);
  color: var(--text);
}

.np__btn svg {
  width: 20px;
  height: 20px;
}

.np__btn--big svg {
  width: 24px;
  height: 24px;
}

.np__btn--main {
  width: 60px;
  height: 60px;
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 10px 24px rgba(14, 125, 140, 0.35);
}

.np__btn--main:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.np__btn--main svg {
  width: 26px;
  height: 26px;
}

.np__btn.is-on {
  color: var(--accent-text);
}

/* 队列 */

.sheet--queue .queue {
  height: min(70dvh, 560px);
  display: flex;
  flex-direction: column;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}

.queue__meta {
  font-size: 12px;
  color: var(--text-2);
  padding: 4px 4px 10px;
}

.queue__list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  text-align: left;
}

.queue__item:hover {
  background: var(--chip);
}

.queue__item.is-active {
  background: var(--accent-soft);
}

.queue__index {
  width: 22px;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.queue__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.queue__name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue__artist {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue__playing {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
  flex: none;
}

.queue__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* -------------------------------- Toast -------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--mini-h) + 26px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  z-index: 80;
  max-width: calc(100% - 40px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(9, 26, 33, 0.92);
  color: var(--on-header-bright);
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================================ 响应式 ================================ */

@media (min-width: 700px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 18px;
    overflow: visible;
  }

  .chart-card__name {
    font-size: 14px;
  }

  .chart-card__meta {
    font-size: 11.5px;
  }

  .chart-card__count {
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 3px 8px 3px 6px;
  }

  .chart-card__count-icon {
    width: 12px;
    height: 12px;
  }

  .chart-card__play {
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
  }

  .chart-card__play svg {
    width: 14px;
    height: 14px;
  }

  .page {
    padding: 24px 24px 36px;
    gap: 30px;
  }

  .playlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 18px;
  }

  .search-head {
    display: block;
  }

  .search-page {
    gap: 20px;
  }

  .settings__main {
    padding: 22px 24px 26px;
  }

  .sheet__panel {
    border-radius: 24px;
    margin-bottom: 26px;
  }

  .np {
    height: min(84dvh, 780px);
    max-width: 480px;
  }
}

@media (max-width: 899px) {
  .settings__nav .paper-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
    font-size: 13px;
  }
}

@media (min-width: 900px) {
  .home-sections--multi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
  }

  .topnav {
    display: flex;
  }

  .tabbar {
    display: none;
  }

  .app {
    padding-bottom: calc(var(--mini-h) + 52px + env(safe-area-inset-bottom));
  }

  .mini {
    bottom: 22px;
    width: min(560px, calc(100% - 48px));
  }

  .toast {
    bottom: calc(var(--mini-h) + 38px + env(safe-area-inset-bottom));
  }

  .settings {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }

  .settings__side {
    position: sticky;
    top: calc(var(--top-h) + 20px);
    padding: 14px;
    min-height: 320px;
  }

  .settings__side-title,
  .settings__side-foot {
    display: block;
  }

  .settings__nav {
    flex-direction: column;
    overflow: visible;
  }

  .paper-btn {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .np {
    max-width: 460px;
  }
}

@media (min-width: 1100px) {
  .playlist-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.no-blur .np__bg {
  display: none;
}

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

/* ==========================================================================
   左侧抽屉导航
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 19, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-right: 1px solid var(--line);
  box-shadow: 26px 0 60px rgba(4, 18, 24, 0.28);
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.32, 0.92, 0.28, 1);
  overflow-y: auto;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 4px;
}

.drawer__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-header-soft);
  background: var(--header-grad);
  border: 1px solid rgba(127, 215, 226, 0.3);
  flex: none;
}

.drawer__mark svg {
  width: 24px;
  height: 24px;
}

.drawer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drawer__brand-text strong {
  font-size: 15px;
  letter-spacing: -0.1px;
}

.drawer__brand-text span {
  font-size: 11.5px;
  color: var(--text-2);
}

.drawer__stat {
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--header-grad);
  color: var(--on-header);
  box-shadow: var(--shadow-sm);
}

.drawer__stat-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(234, 243, 245, 0.75);
}

.drawer__stat-title strong {
  font-size: 20px;
  color: var(--on-header-bright);
  letter-spacing: -0.5px;
}

.drawer__stat-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(234, 243, 245, 0.62);
}

.drawer__menu {
  display: flex;
  flex-direction: column;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.drawer__item:last-child {
  border-bottom: 0;
}

.drawer__item:hover {
  background: var(--chip);
}

.drawer__item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--text-2);
  flex: none;
}

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

.drawer__item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.drawer__item-label {
  font-size: 14px;
  font-weight: 500;
}

.drawer__item-hint {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer__item-arrow {
  width: 15px;
  height: 15px;
  color: var(--text-3);
  flex: none;
}

.drawer__item.is-active .drawer__item-icon {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.drawer__item.is-active .drawer__item-label {
  color: var(--accent-strong);
  font-weight: 600;
}

.drawer__footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.drawer__foot-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 12px;
  /* 内容页表面，不用设置页的 paper 令牌 */
  border: 1px solid var(--line);
  background: var(--elev);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  color: var(--text);
}

.drawer__foot-btn svg {
  width: 17px;
  height: 17px;
}

.drawer__foot-btn.is-active {
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ==========================================================================
   「我的」占位页
   ========================================================================== */

.me-page {
  gap: 14px;
  max-width: 760px;
}

.me-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--header-grad);
  color: var(--on-header-bright);
  padding: 22px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.me-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--header-glow);
  pointer-events: none;
}

.me-hero > * {
  position: relative;
}

.me-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--on-header-soft);
  flex: none;
}

.me-mark svg {
  width: 27px;
  height: 27px;
}

.me-id {
  flex: 1;
  min-width: 0;
}

.me-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.me-sub {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(234, 243, 245, 0.66);
}

.me-stats {
  flex: 1 1 100%;
  display: flex;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.me-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.me-stat strong {
  font-size: 18px;
  letter-spacing: -0.3px;
}

.me-stat span {
  font-size: 11.5px;
  color: rgba(234, 243, 245, 0.62);
}

.me-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--elev);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

.me-notice .chip {
  margin-top: 2px;
}

.me-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
}

.me-card-title {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 10px 12px 6px;
}

.me-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.me-row:last-child {
  border-bottom: 0;
}

button.me-row:hover,
a.me-row:hover {
  background: var(--chip);
}

.me-row-label {
  font-size: 14px;
}

.me-row-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.me-row-arrow {
  width: 15px;
  height: 15px;
  color: var(--text-3);
  flex: none;
}

.me-row--disabled {
  opacity: 0.5;
}

.me-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 2px;
}

.me-recent__head .me-card-title {
  padding: 0;
}

.me-recent__list {
  padding: 2px 6px 6px;
}

.me-recent__more {
  display: block;
  width: 100%;
  justify-content: center;
  padding: 10px 0 4px;
}

.me-empty {
  padding: 14px 10px 20px;
  font-size: 13px;
  color: var(--text-2);
}
