:root {
  --bg: #f4f3ef; --card: #ffffff; --card-2: #faf9f6; --text: #1d1c1a; --muted: #6b6963; --faint: #9c998f; --line: #e6e3db;
  --accent: #0f6e56; --accent-2: #12886a; --accent-soft: #e1f3ec; --accent-text: #0a5242;
  --amber: #8a520c; --amber-soft: #fbefdc; --blue: #1b5fa5; --blue-soft: #e7f1fb;
  --red: #b42f2f; --red-soft: #fcebeb; --purple: #5148b5; --purple-soft: #eeedfd;
  --tint: 15 110 86; --radius: 12px; --nav-h: 64px;
  --shadow: 0 1px 2px rgba(20, 18, 10, .05), 0 4px 16px rgba(20, 18, 10, .04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171716; --card: #222220; --card-2: #1c1c1a; --text: #edece7; --muted: #a9a69e; --faint: #7a776f; --line: #353431;
    --accent: #3cb48c; --accent-2: #4cc89d; --accent-soft: #123a2e; --accent-text: #a5e6cf;
    --amber: #f6c475; --amber-soft: #3b2a0c; --blue: #8cbcef; --blue-soft: #10294a;
    --red: #f19a9a; --red-soft: #4a1b1b; --purple: #b3adf0; --purple-soft: #29264f;
    --shadow: none;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ---------- 外框：桌面侧边栏，手机底部导航 ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
.content { max-width: 1120px; margin: 0 auto; padding: 14px 16px calc(var(--nav-h) + 96px); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; max-width: 1120px; margin: 0 auto; }
.topbar .brand { font-weight: 700; font-size: 17px; }
img.logo { flex: none; border-radius: 22%; display: block; }
.wordmark { display: flex; align-items: baseline; gap: 8px; }
.wordmark > b { font-size: 20px; letter-spacing: .04em; }
.wordmark > span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.wordmark > span b { color: var(--accent); }
.topbar .grow { flex: 1; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--muted); cursor: pointer; }
.bottom-nav button.on { color: var(--accent); }
.bottom-nav .cast { position: relative; }
.bottom-nav .cast span.ring { width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(15, 110, 86, .35); }
.bottom-nav .cast span.ring svg { width: 24px; height: 24px; }
.mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 19;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center;
  gap: 10px; padding: 8px 8px 8px 8px; cursor: pointer; }
.mini .t { flex: 1; min-width: 0; }
.mini .t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .t span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--card-2); }
  .side .brand { font-weight: 700; font-size: 18px; padding: 4px 12px 18px; display: flex; align-items: center; gap: 8px; letter-spacing: .04em; }
  .side .brand small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
  .side nav button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: 10px;
    color: var(--muted); cursor: pointer; font-size: 15px; margin-bottom: 2px; text-align: left; }
  .side nav button:hover { background: var(--line); color: var(--text); }
  .side nav button.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
  .side .grow { flex: 1; }
  .side .now-mini { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
  .side .now-mini .t { min-width: 0; flex: 1; }
  .side .now-mini b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side .now-mini span { font-size: 12px; color: var(--muted); }
  .bottom-nav, .mini, .topbar { display: none; }
  .content { padding: 28px 32px 48px; }
}

/* ---------- 通用 ---------- */
h1.page { font-size: 24px; font-weight: 700; margin: 4px 0 4px; letter-spacing: -.01em; }
p.lead { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2, .sec-title { font-size: 15px; font-weight: 650; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title { margin: 22px 2px 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.empty { color: var(--muted); padding: 22px 0; text-align: center; font-size: 14px; }
.two { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; line-height: 1.3; font-weight: 500; }
.btn:hover { border-color: var(--faint); }
a.btn { text-decoration: none; color: inherit; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { background: var(--line); color: var(--text); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 13px 20px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--line); color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.chip.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.off { background: var(--red-soft); color: var(--red); border-color: transparent; }
button.chip { cursor: pointer; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; font-weight: 500; }
.tag.music { background: var(--accent-soft); color: var(--accent-text); }
.tag.request { background: var(--accent-soft); color: var(--accent-text); }
.tag.promo { background: var(--amber-soft); color: var(--amber); }
.tag.schedule { background: var(--purple-soft); color: var(--purple); }
.tag.template, .tag.announce { background: var(--blue-soft); color: var(--blue); }
.banner { padding: 11px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
.banner.info { background: var(--blue-soft); color: var(--blue); }

/* ---------- 封面 ---------- */
.cover { width: var(--sz, 48px); height: var(--sz, 48px); border-radius: calc(var(--sz, 48px) * .14); overflow: hidden; flex: none; position: relative;
  display: grid; place-items: center; color: rgba(255, 255, 255, .85); background: var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover svg.i { width: 42%; height: 42%; }
.cover.k-promo { background: linear-gradient(135deg, #f0a43a, #c9661a); }
.cover.k-schedule { background: linear-gradient(135deg, #8b84e8, #5148b5); }
.cover.k-template, .cover.k-announce { background: linear-gradient(135deg, #58a2ea, #1b5fa5); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; width: var(--sz); height: var(--sz); border-radius: 14px; overflow: hidden; flex: none; background: var(--line); }
.mosaic .cover { border-radius: 0; width: 100%; height: 100%; }
.mosaic.single { grid-template-columns: 1fr; }

/* ---------- 播放页 ---------- */
.player { background: linear-gradient(180deg, rgb(var(--tint) / .26) 0%, rgb(var(--tint) / .08) 55%, var(--card) 100%), var(--card); text-align: center; padding: 22px 20px 20px; }
@media (prefers-color-scheme: dark) { .player { background: linear-gradient(180deg, rgb(var(--tint) / .32) 0%, rgb(var(--tint) / .08) 60%, var(--card) 100%), var(--card); } }
.player .art { margin: 4px auto 18px; width: min(300px, 72vw); }
.player .art .cover { --sz: min(300px, 72vw); border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.player .title { font-size: 21px; font-weight: 700; margin: 0; line-height: 1.3; word-break: break-word; }
.player .sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.progress { margin: 18px 0 6px; }
.progress .bar { height: 5px; background: rgb(127 127 127 / .22); border-radius: 3px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--text); border-radius: 3px; transition: width .9s linear; }
.progress .times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 8px 0 16px; }
.play { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
.play svg.i { width: 28px; height: 28px; }
.ctl { width: 48px; height: 48px; border-radius: 50%; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.ctl:hover { background: rgb(127 127 127 / .15); }
.ctl svg.i { width: 26px; height: 26px; }
.vol { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.vol input { flex: 1; }
.vol .v { width: 40px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
input[type=range] { accent-color: var(--accent); height: 22px; }
.overlay-now { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 14px; display: flex; gap: 8px; align-items: center; text-align: left; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* 列表 */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .main { flex: 1; min-width: 0; }
.list .title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .side-info { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.list .actions { display: flex; gap: 4px; flex: none; align-items: center; }
.list li.cur .title { color: var(--accent); }
.time-big { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; }

/* ---------- 广播页 ---------- */
.compose textarea { border: 0; background: none; padding: 2px 0; min-height: 56px; font-size: 16px; resize: none; outline: none; width: 100%; }
.compose .bar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; flex-wrap: wrap; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 13px 13px 12px; text-align: left; cursor: pointer;
  min-height: 92px; display: flex; flex-direction: column; gap: 4px; position: relative; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); }
.tile:active { transform: scale(.98); }
.tile b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.tile > span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .edit { position: absolute; top: 6px; right: 6px; }
.tile.add { align-items: center; justify-content: center; color: var(--muted); border-style: dashed; box-shadow: none; }
.field-chip { background: var(--amber-soft); color: var(--amber); border-radius: 4px; padding: 0 3px; }
.sentence { font-size: 18px; line-height: 2.1; margin: 4px 0 14px; }
.sentence input { display: inline-block; width: auto; min-width: 70px; max-width: 220px; font-size: 17px; padding: 4px 8px; margin: 0 3px; border: 0;
  border-bottom: 2px solid var(--amber); border-radius: 6px 6px 0 0; background: var(--amber-soft); color: var(--text); text-align: center; }
.recent { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.recent::-webkit-scrollbar { display: none; }
.recent button { flex: none; max-width: 240px; text-align: left; }
.recent button span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 节目单 ---------- */
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: none; border: 1px solid var(--line); background: var(--card); padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.subtabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
/* 节目单 · 一天的时间轴：色块是时段歌单，斜纹是打烊静音，圆点是促销（估计），菱形是定时播报 */
:root {
  --seg0: #dff1e8; --seg0t: #0a5242; --seg1: #fbe9c6; --seg1t: #7a4a08; --seg2: #f5e3d7; --seg2t: #7a3f1e;
  --seg3: #dce8f6; --seg3t: #1b4f8a; --seg4: #e7e3f4; --seg4t: #3f3a8a; --seg5: #f6dfe6; --seg5t: #8a2f4f;
  --segd: #eceae3; --segdt: #6b6963; --hatch1: #f1eee6; --hatch2: #e2ded3; --promo-dot: #e39a2c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --seg0: #173d31; --seg0t: #a5e6cf; --seg1: #3d2f12; --seg1t: #f6c475; --seg2: #3d2a1f; --seg2t: #f0b48e;
    --seg3: #142c47; --seg3t: #8cbcef; --seg4: #29264f; --seg4t: #b3adf0; --seg5: #3f1d2a; --seg5t: #f0a3bd;
    --segd: #2a2a27; --segdt: #a9a69e; --hatch1: #1f1f1d; --hatch2: #2c2c29; --promo-dot: #e0a040;
  }
}
.c0 { background: var(--seg0); color: var(--seg0t); } .c1 { background: var(--seg1); color: var(--seg1t); }
.c2 { background: var(--seg2); color: var(--seg2t); } .c3 { background: var(--seg3); color: var(--seg3t); }
.c4 { background: var(--seg4); color: var(--seg4t); } .c5 { background: var(--seg5); color: var(--seg5t); }
.cd { background: var(--segd); color: var(--segdt); }
.dl { padding: 18px 22px 20px; }
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dl [hidden] { display: none !important; }
.dl-head h2 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.dl-days { display: flex; gap: 4px; margin-left: auto; }
.dl-days button { position: relative; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: 13px; cursor: pointer; }
.dl-days button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.dl-days button.today::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.dl-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.dl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-seg { width: 14px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, var(--seg0) 50%, var(--seg1) 50%); }
.lg-promo { width: 7px; height: 7px; border-radius: 50%; background: var(--promo-dot); }
.lg-sch { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.lg-off { width: 14px; height: 9px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--hatch1) 0 3px, var(--hatch2) 3px 6px); }
.dl-track { position: relative; margin-top: 38px; padding-top: 28px; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline: none; border-radius: 12px; }
.dl-track:focus-visible { box-shadow: 0 0 0 3px rgb(var(--tint) / .3); }
.dl-marks { position: absolute; top: 0; left: 0; right: 0; height: 28px; }
.dl-mk { position: absolute; top: 10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--promo-dot); transition: transform .15s; }
.dl-mk.sch { top: 8.5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 2.5px; background: var(--accent); transform: rotate(45deg); }
.dl-mk.skip { background: var(--card); border: 2px solid var(--faint); }
.dl-mk.past, .dl-band.past { opacity: .4; }
.dl-mk.on { transform: scale(1.6); }
.dl-mk.sch.on { transform: rotate(45deg) scale(1.45); }
.dl-band { position: absolute; top: 11px; height: 6px; background: radial-gradient(circle, var(--promo-dot) 0 2.3px, transparent 2.7px) 0 50% / 9px 6px repeat-x; }
.dl-segs { position: relative; height: 60px; border-radius: 12px; overflow: hidden; background: var(--segd); }
.dl-seg { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; overflow: hidden;
  white-space: nowrap; line-height: 1.35; box-shadow: inset 2px 0 0 var(--card); transition: filter .15s; }
.dl-seg b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.dl-seg small { font-size: 11.5px; opacity: .75; font-variant-numeric: tabular-nums; }
.dl-seg.narrow b, .dl-seg.narrow small, .dl-seg.mid small, .dl-off.narrow span { display: none; }
.dl-seg.mid { padding: 0 6px; }
.dl-seg.mid b { font-size: 12px; }
.dl-seg.on { filter: saturate(1.35) brightness(.96); }
@media (prefers-color-scheme: dark) { .dl-seg.on { filter: saturate(1.2) brightness(1.18); } }
.dl-off { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--hatch1) 0 6px, var(--hatch2) 6px 12px); }
.dl-axis { position: relative; height: 22px; margin-top: 6px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dl-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.dl-now, .dl-cursor { position: absolute; width: 2px; margin-left: -1px; border-radius: 2px; pointer-events: none; }
.dl-now { top: 28px; height: 60px; background: var(--red); opacity: .55; }
.dl-cursor { top: 0; height: 88px; background: var(--text); }
.dl-cursor span { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 7px; white-space: nowrap;
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-cursor span.l { transform: translateX(-12px); }
.dl-cursor span.r { transform: translateX(calc(-100% + 12px)); }
.dl-cursor::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  box-sizing: border-box; background: inherit; border: 3px solid var(--card); }
.dl-cursor.live, .dl-cursor.live span { background: var(--red); color: var(--card); }
.dl-read { display: grid; grid-template-columns: 150px minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.dl-read .k { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--faint); }
.dl-time b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dl-tag { margin-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dl-time .btn { margin-top: 10px; }
.dl-v { min-height: 3.2em; font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.dl-v q { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.dl-v .m { color: var(--muted); font-size: 13px; }
.dl-chip { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.dl-chip.off { background: var(--hatch2); color: var(--muted); }
.dl-chip.promo { background: var(--amber-soft); color: var(--amber); }
.dl-chip.sch { background: var(--accent-soft); color: var(--accent-text); }
.dl-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl-act:empty { display: none; }
.cards3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.cards3 > .card { margin: 0; }
@media (min-width: 900px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dl { padding: 14px 14px 16px; }
  .dl-days { width: 100%; margin-left: 0; justify-content: space-between; }
  .dl-days button { width: 36px; height: 36px; }
  .dl-read { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dl-time { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .dl-time .k { width: 100%; }
  .dl-time .btn { margin: 0 0 0 auto; }
  .dl-v { min-height: 0; }
  .dl-axis .minor { display: none; }
}

/* ---------- 音乐页 ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 16px; }
.search input { border: 0; background: none; outline: none; padding: 11px 0; flex: 1; font-size: 15px; }
.pl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pl-card { border: 0; background: none; text-align: left; cursor: pointer; padding: 0; }
.pl-card .mosaic { width: 100%; height: auto; aspect-ratio: 1; box-shadow: var(--shadow); }
.pl-card b { display: block; margin-top: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-card span { font-size: 13px; color: var(--muted); }
.pl-head { display: flex; gap: 18px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.pl-head h1 { margin: 0; font-size: 26px; }

/* ---------- 表单 ---------- */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=password], input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: none; padding: 7px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--accent); color: #fff; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days button { width: 38px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: none; cursor: pointer; }
.days button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 24px; cursor: pointer; transition: .2s; }
.switch i::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::before { transform: translateX(18px); }
.voices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 380px; overflow-y: auto; padding: 2px; }
.voice { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: var(--card); text-align: left; }
.voice.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.voice b { font-weight: 600; font-size: 14px; }
.voice .tags { font-size: 12px; color: var(--muted); }

/* ---------- 弹窗 ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .15s; }
@media (min-width: 640px) { .modal-bg { align-items: center; } }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .2s; }
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.modal h3 { margin: 0 0 14px; font-size: 18px; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 90px); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; z-index: 60; font-size: 14px; max-width: 90vw; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.toast.err { background: var(--red); color: #fff; }

/* ---------- 上传 ---------- */
.dropzone { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card-2); outline: none; }
.dropzone b { color: var(--text); font-weight: 600; }
.dropzone span { font-size: 13px; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.up-names { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.up-names li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-mask { position: fixed; inset: 10px; z-index: 45; border: 2.5px dashed var(--accent); border-radius: 20px; pointer-events: none;
  background: color-mix(in srgb, var(--accent-soft) 85%, transparent); display: grid; place-items: center; text-align: center;
  color: var(--accent-text); font-size: 18px; font-weight: 600; }
.drop-mask svg.i { width: 34px; height: 34px; margin-bottom: 8px; }
.up-tray { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 76px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .16); overflow: hidden; }
@media (min-width: 900px) { .up-tray { left: auto; right: 20px; bottom: 20px; width: 380px; } }
.up-tray .hd { display: flex; align-items: center; gap: 6px; padding: 8px 6px 8px 14px; }
.up-tray .hd > svg.i { color: var(--accent); }
.up-tray .hd b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { height: 4px; background: rgb(127 127 127 / .2); border-radius: 2px; overflow: hidden; }
.up-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.up-tray > .up-bar { margin: 0 14px 10px; }
.up-list { list-style: none; margin: 0; padding: 0 14px 6px; max-height: min(44vh, 340px); overflow-y: auto; border-top: 1px solid var(--line); }
.up-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.up-list li:first-child { border-top: 0; }
.up-list .r { display: flex; align-items: center; gap: 8px; }
.up-list .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-list .s { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.up-list .s.ok { color: var(--accent); }
.up-list .s.err { color: var(--red); }
.up-list .m { color: var(--red); font-size: 12px; margin-top: 2px; }
.up-list .m.muted { color: var(--muted); }
.up-list .up-bar { margin-top: 6px; }

/* ---------- 门店切换 ---------- */
.store-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-weight: 600; }
.store-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-name svg.i { color: var(--accent); }
.store-select { width: auto; max-width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 5px 8px; font-weight: 600; cursor: pointer; min-width: 0; }
.side .side-store { padding: 0 8px 14px; margin-top: -8px; }
.side .side-store .store-name { width: 100%; }
.side .side-store .store-select { flex: 1; }
.topbar .brand { min-width: 0; flex: 0 1 auto; }
.topbar .store-select { max-width: 52vw; }


/* ---------- 登录页：品牌区（遮阳棚 + 口号 + 声波）和表单。手机上品牌区在上，表单卡片压在它下沿 ---------- */
.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--bg); }
.auth-brand { position: relative; overflow: hidden; color: #fff; padding: 0 22px 64px;
  background: radial-gradient(120% 90% at 100% 110%, rgba(32, 160, 124, .55) 0, transparent 60%), linear-gradient(165deg, #0f6e56, #0a4b3b); }
.auth-awning { --s: 34px; --h: 10px; position: relative; z-index: 1; margin: 0 -22px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.auth-awning i { display: block; height: calc(var(--h) + var(--s) / 2);
  background: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, 0) 75%), repeating-linear-gradient(90deg, #fff 0 var(--s), #bfe5d7 var(--s) calc(var(--s) * 2));
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% var(--h) no-repeat, radial-gradient(circle at calc(var(--s) / 2) var(--h), #000 calc(var(--s) / 2 - .5px), transparent calc(var(--s) / 2)) 0 0 / var(--s) 100% repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% var(--h) no-repeat, radial-gradient(circle at calc(var(--s) / 2) var(--h), #000 calc(var(--s) / 2 - .5px), transparent calc(var(--s) / 2)) 0 0 / var(--s) 100% repeat-x; }
.auth-brand-body { position: relative; z-index: 1; padding-top: 22px; }
.auth-mark { display: flex; align-items: center; gap: 12px; }
.auth-mark .logo { width: 44px; height: 44px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35), 0 6px 16px rgba(0, 0, 0, .2); }
.auth-wm { display: flex; align-items: baseline; gap: 8px; }
.auth-wm b { font-size: 22px; letter-spacing: .06em; }
.auth-wm span { font-size: 13px; color: #9fd8c2; letter-spacing: .03em; }
.auth-slogan { margin: 18px 0 6px; font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; }
.auth-tag { margin: 0; color: #cfe9de; font-size: 14px; }
.auth-arcs { position: absolute; right: -50px; bottom: -40px; width: 260px; opacity: .13; pointer-events: none; }
.auth-arcs svg { display: block; width: 100%; height: auto; }
.auth-copy { display: none; }
.auth-main { padding: 0 16px 40px; }
.auth-lang { position: absolute; right: 12px; top: 36px; z-index: 2; }
.auth-lang .btn { color: #fff; background: rgba(255, 255, 255, .14); border-color: transparent; }
.auth-lang .btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.auth-panel { position: relative; z-index: 1; max-width: 420px; margin: -40px auto 0; padding: 24px 20px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 2px 6px rgba(20, 18, 10, .05), 0 18px 44px -14px rgba(11, 60, 47, .3);
  animation: auth-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes auth-in { from { opacity: 0; transform: translateY(12px); } }
.auth-form h2 { margin: 0 0 4px; font-size: 22px; font-weight: 750; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form label.f { margin-bottom: 14px; }
.auth input[type=text], .auth input[type=password] { padding: 12px 13px; font-size: 16px; border-radius: 12px; }
.pw { position: relative; }
.pw input { padding-right: 46px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--line); }
.auth-caps { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; font-size: 12.5px; color: var(--amber); }
.auth-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 14px; line-height: 1.5; }
.auth [hidden] { display: none !important; }
.auth-form .btn.big { margin-top: 4px; }
.auth-help { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.auth-help summary { cursor: pointer; color: var(--accent); font-weight: 600; width: max-content; list-style: none; }
.auth-help summary::-webkit-details-marker { display: none; }
.auth-help summary::after { content: " ›"; display: inline-block; transition: transform .2s; }
.auth-help[open] summary::after { transform: rotate(90deg); }
.auth-help ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.6; }
.auth-help li { min-width: 0; }
.auth-help code { display: block; margin-top: 5px; padding: 6px 9px; overflow-x: auto; white-space: nowrap; border-radius: 8px;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); border: 1px solid var(--line); color: var(--text); }
.auth-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.55; }
.auth-note .i { margin-top: 1px; color: var(--accent); }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: none; }
  .auth-brand { display: flex; flex-direction: column; padding: 0 56px 36px; }
  .auth-awning { --s: 48px; --h: 14px; margin: 0 -56px; }
  .auth-brand-body { margin: auto 0; padding: 0 0 40px; }
  .auth-mark .logo { width: 56px; height: 56px; }
  .auth-wm b { font-size: 28px; }
  .auth-wm span { font-size: 15px; }
  .auth-slogan { margin: 34px 0 12px; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.12; }
  .auth-tag { font-size: 17px; }
  .auth-arcs { width: 560px; right: -110px; bottom: -150px; }
  .auth-copy { display: block; position: relative; z-index: 1; margin: 0; color: #9fd8c2; font-size: 12.5px; }
  .auth-main { display: grid; place-items: center; padding: 48px 40px; }
  .auth-lang { top: 20px; right: 24px; }
  .auth-lang .btn { color: var(--muted); background: none; }
  .auth-lang .btn:hover { color: var(--text); background: var(--line); }
  .auth-panel { width: 100%; max-width: 380px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .auth-form h2 { font-size: 30px; }
  .auth-sub { font-size: 15px; margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { .auth-panel { animation: none; } }

/* ---------- 播放设备 ---------- */
.dev-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--line); color: var(--muted); }
.dev-ic.on { background: var(--accent-soft); color: var(--accent-text); }
.pair-step { display: flex; gap: 12px; margin-bottom: 18px; }
.pair-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 650; background: var(--accent-soft); color: var(--accent-text); }
.pair-body { flex: 1; min-width: 0; }
.pair-t { font-weight: 600; margin: 2px 0 8px; }
.pair-body .hint { margin: 8px 0 0; }
.pair-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.pair-url { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.pair-code { font: 650 32px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 4px; color: var(--text); }
.pair-status { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 14px; }
.pair-status.ok { background: var(--accent-soft); color: var(--accent-text); font-weight: 550; }
