/* 好福田 - 纸墨赭石 设计系统
   编码: UTF-8   规范见 docs/design.md */

:root {
  --paper:      #F6F2EA;
  --surface:    #FFFCF7;
  --line:       #E5DED1;
  --line-soft:  #EAE3D6;
  --ink:        #23201B;
  --ink-2:      #5C554A;
  --ink-3:      #8E8677;
  --ink-4:      #A69D8E;
  --zhe:        #96522A;
  --zhe-dark:   #7A4220;
  --zhe-soft:   #F0E4D8;
  --zhe-line:   #E0D0BC;
  --dark:       #1A1815;
  --dark-deep:  #14120F;
  --dark-tile:  #1F1C17;
  --dark-line:  #332E27;
  --on-dark:    #F6F2EA;
  --on-dark-2:  #9A9184;
  --amber:      #C79A72;
  --amber-2:    #D89A62;
  --video:      #5F5470;
  --video-soft: #E7E1EC;
  --video-ink:  #5F5470;

  /* 全部用系统字体：Google Fonts 在中国大陆不可靠，会阻塞首屏。
     中文系统字体本身质量很好——iOS 宋体是 Songti SC，Windows 是 SimSun。 */
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
           "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
  /* 实测渲染高度 75px（8 上内边距 + 24 图标 + 5 间距 + 18 文字 + 8 下内边距 + 8 tab 内边距），
     早先写 66px 会把视频页末行切掉 */
  --tabbar-h: calc(75px + var(--safe-b));
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + 8px);
}
/* 视频页导航栏仍然显示（只有全屏音频页才隐藏），留够它的高度，否则末行被遮住 */
body.no-tabbar { padding-bottom: calc(var(--tabbar-h) + 8px); }
body.player-open { padding-bottom: 0; overflow: hidden; }

.serif { font-family: var(--serif); }
a { color: var(--zhe); text-decoration: none; }
a:hover { color: var(--zhe-dark); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- 页首 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; min-height: 68px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar__mark {
  width: 40px; height: 40px; border-radius: 11px; background: var(--zhe);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--surface); line-height: 1;
}
.topbar__title {
  flex: 1; min-width: 0; font-family: var(--serif);
  font-size: 20px; font-weight: 600; letter-spacing: .06em; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar__title--home { font-size: 22px; letter-spacing: .1em; }
.icon-btn {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 通用 ---------- */
.section-head {
  display: flex; align-items: baseline; gap: 10px; padding: 20px 18px 10px;
}
.section-head__t {
  flex: 1; font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: .06em; color: var(--ink);
}
.section-head__a { font-size: 15px; color: var(--zhe); }

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; border-radius: 26px; background: var(--zhe);
  font-size: 17px; font-weight: 500; color: var(--surface); width: 100%;
}
.btn-primary--video { background: var(--video); }

.empty { padding: 60px 24px; text-align: center; color: var(--ink-3); }
.empty__icon { display: block; margin: 0 auto 14px; opacity: .5; }
.loading { padding: 48px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ---------- 续听卡 ---------- */
.resume {
  display: flex; flex-direction: column; gap: 12px;
  margin: 18px; padding: 20px; border-radius: 16px;
  background: var(--dark); color: var(--on-dark); text-align: left; width: calc(100% - 36px);
}
.resume__label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--amber); letter-spacing: .12em; }
.resume__title { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.5; }
.resume__row { display: flex; align-items: center; gap: 12px; }
.resume__left { flex: 1; font-size: 14px; color: var(--on-dark-2); }
.resume__go {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 24px; background: var(--zhe); font-size: 17px; font-weight: 500; color: var(--surface);
}
.bar { height: 4px; border-radius: 2px; background: var(--dark-line); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 2px; background: var(--amber); }

/* ---------- 栏目横排 ---------- */
.chips { display: flex; gap: 9px; padding: 14px 18px 0; overflow-x: auto; }
.chips::after { content: ''; flex: 0 0 1px; }
.chip {
  flex: 1; min-width: max-content;
  display: flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 16px; border-radius: 23px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 16px; color: var(--ink-2); white-space: nowrap;
}
.chip--on { background: var(--zhe); border-color: var(--zhe); color: var(--surface); font-weight: 500; }

/* ---------- 列表行 ---------- */
.row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 18px; border-top: 1px solid var(--line-soft);
  width: 100%; text-align: left;
}
.list > .row:last-child { border-bottom: 1px solid var(--line-soft); }
.row__art {
  position: relative; width: 48px; height: 48px; border-radius: 10px;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #8C7A56 0%, #57492E 100%);
}
.row__artn { font-family: var(--serif); font-size: 14px; color: #F6EFE4; }
.row__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row__num {
  width: 38px; height: 38px; border-radius: 19px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--ink-2);
}
.row__num--done { background: var(--zhe-soft); border-color: transparent; }
.row__num--playing { background: var(--zhe); border-color: var(--zhe); }
.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row__t { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.row__t--done { font-weight: 400; color: var(--ink-3); }
.row__m { font-size: 13px; color: var(--ink-3); }
.row__act { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.act {
  width: 44px; height: 44px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.act--main { width: 48px; height: 48px; border-radius: 24px; background: var(--zhe); }
.act--main-video { background: var(--video); }
.row--current { background: var(--zhe-soft); border-color: var(--zhe-line); }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 12px; font-weight: 500; background: var(--video-soft); color: var(--video-ink);
}

/* ---------- 系列卡 ---------- */
.series {
  display: flex; gap: 15px; margin: 0 18px 12px; padding: 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  width: calc(100% - 36px); text-align: left;
}
.series__cover {
  width: 74px; height: 92px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.25;
  color: #F6EFE4; writing-mode: vertical-rl; letter-spacing: .05em;
}
.series__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.series__t { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.series__d { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.series__m { margin-top: auto; display: flex; align-items: center; gap: 7px; }
.pill {
  padding: 3px 9px; border-radius: 5px; background: var(--zhe-soft);
  font-size: 13px; font-weight: 500; color: var(--zhe);
}

.intro {
  margin: 16px 18px 0; padding: 16px; border-radius: 16px;
  background: #EDE5D7; border: 1px solid #E0D5C2;
  display: flex; flex-direction: column; gap: 10px;
}
.intro__t { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .06em; }
.intro__d { font-size: 15px; line-height: 1.85; color: var(--ink-2); text-wrap: pretty; }
.intro__m { display: flex; gap: 18px; font-size: 14px; color: var(--ink-3); }

/* ---------- 系列头 ---------- */
.shead {
  display: flex; flex-direction: column; gap: 14px; padding: 18px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.shead__top { display: flex; gap: 15px; }
.shead__cover {
  width: 76px; height: 98px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25;
  color: #F6EFE4; writing-mode: vertical-rl; letter-spacing: .05em;
}
.shead__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shead__t { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.35; }
.shead__m { font-size: 14px; line-height: 1.7; color: var(--ink-3); }

/* ---------- 连播 / 排序 ---------- */
.sortbtn {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; color: var(--zhe); flex-shrink: 0;
}
.autoplay {
  display: flex; align-items: center; gap: 12px;
  margin: 6px 18px 10px; padding: 12px 15px; border-radius: 12px;
  background: var(--zhe-soft); border: 1px solid var(--zhe-line);
  width: calc(100% - 36px); text-align: left;
}
.autoplay__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.autoplay__t { font-size: 16px; font-weight: 500; color: var(--ink); }
.autoplay__d { font-size: 13px; color: var(--ink-3); }
.switch {
  width: 50px; height: 30px; border-radius: 15px; background: #D5CCBC; flex-shrink: 0;
  display: flex; align-items: center; padding: 0 3px; transition: background .18s;
}
.switch__k { width: 24px; height: 24px; border-radius: 12px; background: var(--surface); transition: transform .18s; }
.switch--on { background: var(--zhe); }
.switch--on .switch__k { transform: translateX(20px); }
.switch--video.switch--on { background: var(--video); }
/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + var(--safe-b));
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 0; }
.tab__l { font-size: 13px; color: var(--ink-3); }
.tab--on .tab__l { color: var(--zhe); font-weight: 500; }

/* ---------- 播放页 ---------- */
.audio-page {
  position: fixed; inset: 0; z-index: 60;
  background: var(--dark-deep); color: var(--on-dark);
  display: flex; flex-direction: column; overflow-y: auto;
}
.audio-page__head { display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; }
.audio-page__hint { flex: 1; text-align: center; font-size: 13px; letter-spacing: .16em; color: #8B8375; }
.art {
  position: relative; width: min(252px, 68vw); aspect-ratio: 1;
  margin: 14px auto 0; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #8C7A56 0%, #4A3E27 100%);
}
.art__txt {
  font-family: var(--serif); font-size: clamp(24px, 8vw, 34px); font-weight: 500;
  line-height: 1.3; letter-spacing: .1em; color: #F3EADB; writing-mode: vertical-rl;
}
.art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audio-page__t {
  font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.4;
  text-align: center; padding: 26px 24px 0; text-wrap: pretty;
}
.audio-page__by { text-align: center; font-size: 15px; color: #8B8375; padding-top: 8px; }
.seek { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 9px; }
.seek input[type=range] { width: 100%; accent-color: var(--amber-2); height: 24px; }
.seek__times { display: flex; font-size: 13px; color: #8B8375; font-variant-numeric: tabular-nums; }
.seek__times span:first-child { flex: 1; }
.transport { display: flex; align-items: center; justify-content: center; gap: 34px; padding: 20px 0 0; }
.transport__s { width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.transport__s span { font-size: 11px; color: #8B8375; }
.transport__p {
  width: 78px; height: 78px; border-radius: 39px; background: #F3EADB;
  display: flex; align-items: center; justify-content: center;
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 20px 0; }
.tile {
  height: 62px; border-radius: 12px; background: var(--dark-tile);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.tile__v { font-family: var(--serif); font-size: 17px; font-weight: 500; color: #E4DCCE; }
.tile__l { font-size: 12px; color: #8B8375; }
.tile__l--on { color: var(--amber-2); }
.nextup {
  display: flex; align-items: center; gap: 12px; margin: 20px 20px 0;
  padding: 13px 16px; border-radius: 12px; background: var(--dark-tile);
  width: calc(100% - 40px); text-align: left;
}
.nextup__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nextup__l { font-size: 12px; letter-spacing: .12em; color: #8B8375; }
.nextup__t { font-family: var(--serif); font-size: 16px; color: #E4DCCE; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-page__foot {
  margin-top: auto; padding: 22px 20px calc(24px + var(--safe-b));
  font-size: 12px; line-height: 1.7; color: #6E6759; text-align: center;
}

/* ---------- 视频页 ---------- */
.video-stage { width: 100%; aspect-ratio: 16 / 9; background: #12160F; display: block; }
.vmeta { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 0; }
.vmeta__t { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.vmeta__m { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.swap {
  display: flex; align-items: center; gap: 11px; margin: 16px 18px 0;
  padding: 12px 15px; border-radius: 12px; background: var(--dark);
  width: calc(100% - 36px); text-align: left;
}
.swap__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.swap__t { font-size: 16px; font-weight: 500; color: var(--on-dark); }
.swap__d { font-size: 13px; color: var(--on-dark-2); }

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 70; background: rgba(35,32,27,.62);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.sheet {
  background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(26px + var(--safe-b));
  max-height: 88vh; overflow-y: auto;
}
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: #D5CCBC; margin: 0 auto 18px; }
.sheet__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sheet__t { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .06em; }
.sheet__d { font-size: 14px; color: var(--ink-3); }
.step { display: flex; align-items: center; gap: 14px; }
.step__n {
  width: 34px; height: 34px; border-radius: 17px; background: var(--zhe); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; color: var(--surface);
}
.step__t { flex: 1; min-width: 0; font-size: 17px; line-height: 1.6; }
.step__i {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.note {
  display: flex; gap: 11px; margin-top: 20px; padding: 14px; border-radius: 12px;
  background: #EDE5D7; border: 1px solid #E0D5C2;
  font-size: 14px; line-height: 1.75; color: var(--ink-2); text-wrap: pretty;
}
.sheet__ok {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: 52px; border-radius: 26px; background: var(--ink); margin-top: 18px;
  font-size: 17px; font-weight: 500; color: var(--paper);
}
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 4px; border-bottom: 1px solid var(--line); text-align: left;
}
.opt:last-of-type { border-bottom: 0; }
.opt__t { flex: 1; font-size: 17px; color: var(--ink); }
.opt--on .opt__t { font-weight: 600; color: var(--zhe); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px);
  transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: 11px 18px; border-radius: 22px; font-size: 15px;
  opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 80vw;
}
.toast--on { opacity: 1; }

@media (min-width: 640px) {
  .topbar, .section-head, .row, .chips { padding-left: 24px; padding-right: 24px; }
}

/* ---------- 媒体缺失提示 ---------- */
.mediaerr {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 20px 0; padding: 14px 16px; border-radius: 12px;
  background: var(--dark-tile); width: calc(100% - 40px);
}
.mediaerr--light {
  background: var(--zhe-soft); border: 1px solid var(--zhe-line);
  margin: 16px 18px 0; width: calc(100% - 36px);
}
.mediaerr__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mediaerr__t { font-size: 16px; font-weight: 500; color: #E4DCCE; }
.mediaerr__d { font-size: 13px; color: #8B8375; }
.mediaerr--light .mediaerr__t { color: var(--ink); }
.mediaerr--light .mediaerr__d { color: var(--ink-3); }
.mediaerr__go {
  height: 40px; padding: 0 16px; border-radius: 20px; background: var(--zhe);
  font-size: 15px; font-weight: 500; color: var(--surface); flex-shrink: 0;
}

/* ---------- 首页方案 v2 ---------- */
.home-heading { padding: 30px 22px 6px; }
.home-heading h1 { margin: 0; font: 600 28px/1.5 var(--serif); letter-spacing: .12em; }
.home-heading > span { display: block; width: 26px; height: 2px; margin-top: 12px; background: var(--zhe); }
.resume { background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-align: left; }
.resume__label { color: var(--zhe); }
.resume__row { flex-direction: column; align-items: stretch; }
.resume__left { color: var(--ink-3); }
.resume__go { justify-content: center; width: 100%; height: 46px; border-radius: 23px; }
.resume .bar { background: var(--line); }
.bar__fill { display: block; background: var(--zhe); }
.catalog-entry { display: flex; align-items: center; gap: 14px; margin: 24px 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.catalog-entry > span { flex: 1; }
.catalog-entry strong, .catalog-entry small { display: block; }
.catalog-entry strong { font: 600 20px/1.5 var(--serif); color: var(--ink); }
.catalog-entry small, .catalog-total { font-size: 12px; color: var(--ink-3); }
.catalog-total { white-space: nowrap; }
.catalog-group h2 { margin: 0; padding: 24px 22px 10px; font-size: 12px; font-weight: 400; letter-spacing: .16em; color: var(--ink-3); }
.catalog-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.catalog-row:last-child { border-bottom: 1px solid var(--line-soft); }
.catalog-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--paper); font: 24px var(--serif); }
.catalog-body { flex: 1; min-width: 0; }
.catalog-body strong { display: block; font: 500 19px/1.5 var(--serif); color: var(--ink); }
.catalog-body small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.catalog-row .pill { border-radius: 999px; font-size: 11px; white-space: nowrap; }
.is-empty { opacity: .5; }
.catalog-still { position: relative; border-radius: 8px; overflow: hidden; background: var(--video); }
.catalog-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seed-cover { position: relative; background: var(--dark-tile); border-radius: 9px; writing-mode: horizontal-tb; color: #E8DFCE; }
.seed-cover::after { content: ''; position: absolute; inset: 7px; border: 1px solid #3E372E; border-radius: 5px; pointer-events: none; }
.series__cover.seed-cover { width: 84px; height: 84px; font-size: 40px; }
.shead__cover { width: 68px; height: 110px; background: var(--dark-tile); border-radius: 6px; font-size: 18px; padding: 8px; }
.shead__desc { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.series-actions { display: flex; gap: 10px; align-items: center; }
.series-actions .btn-primary { flex: 1; height: 48px; }
.sortbtn { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
.segments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.segments button { min-width: 60px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink-2); background: var(--surface); font-size: 14px; }
.row { scroll-margin-top: 90px; }
.act--main { width: 44px; height: 44px; }
.act--done { background: none; }
.act--done svg { fill: var(--ink-3); }
body.no-tabbar .row__num--playing { background: var(--video); border-color: var(--video); }
.art { width: 232px; height: 262px; min-height: 262px; aspect-ratio: auto; background: var(--dark-tile); border: 1px solid var(--dark-line); border-radius: 12px; padding: 28px 24px 48px; }
.art::after { content: ''; position: absolute; inset: 13px; border: 1px solid #3E372E; border-radius: 5px; pointer-events: none; }
.art__txt { font-size: 25px; max-height: 174px; }
.art__ep { position: absolute; bottom: 26px; font: 15px var(--serif); color: var(--amber); letter-spacing: .15em; }
.tile { color: #E4DCCE; }
.tile--on, .tile--on .tile__l { color: var(--amber-2); }
.audio-page__foot { flex-shrink: 0; color: var(--amber); }
.sidebar { display: none; }
:focus-visible { outline: 2px solid var(--zhe); outline-offset: 4px; }
@media (min-width: 768px) {
  body, body.no-tabbar { padding-left: 260px; padding-bottom: 24px; }
  .wrap { max-width: 620px; }
  .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 260px; padding: 28px 20px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); z-index: 45; }
  .sidebar-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; font: 600 24px var(--serif); letter-spacing: .08em; color: var(--ink); }
  .sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 9px; color: var(--ink-2); font-size: 15px; }
  .sidebar-link small { margin-left: auto; color: var(--ink-3); font-size: 11px; }
  .sidebar-link.is-active { background: var(--zhe-soft); color: var(--zhe); }
  .sidebar-group { padding: 24px 12px 7px; font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }
  .sidebar-install { display: flex; gap: 10px; align-items: center; min-height: 48px; margin-top: auto; padding: 24px 12px 0; color: var(--ink-3); font-size: 14px; }
  .audio-page { left: 260px; align-items: center; }
  .audio-page > :not(.art) { width: min(100%, 620px); }
  .audio-page .nextup, .audio-page .tiles, .audio-page .mediaerr { width: min(calc(100% - 40px), 580px); }
  .sheet { width: 620px; max-width: 100%; margin: 0 auto; }
}

.mediaerr__retry { flex-shrink: 0; color: var(--amber-2); min-height: 44px; padding: 0 8px; }
.mediaerr--light .mediaerr__retry { color: var(--zhe); }
