/* 断网时的提示和标记。
   离线播放是这个站的卖点，偏偏断网时最糊涂：点一首没下载的歌只会一直转，
   也看不出哪几首能听。这里把这两件事说清楚。 */
#net-bar {
  position: sticky; top: 0; z-index: 8;
  display: none; align-items: center; gap: 10px;
  padding: 9px 14px; margin: 0 -12px 10px;
  background: #fff1ef; border-bottom: 1px solid #f3cfc9; color: #8c3b2e;
  font-size: 13px; line-height: 1.5;
}
#net-bar.show { display: flex; }
#net-bar b { flex: none; font-size: 15px; }
#net-bar span { flex: 1; min-width: 0; }
#net-bar i { font-style: normal; font-weight: 700; }

/* 没下载的歌，断网时压暗并标一下，省得点了干等 */
body.net-off #songs li.need-net { opacity: .45; }
body.net-off #songs li.need-net .download-state { color: #b9693f; }
body.net-off #songs li.need-net .song-title::after {
  content: "需联网"; margin-left: 8px; padding: 1px 6px;
  border-radius: 999px; background: #f6e2dd; color: #9c5443;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* 断网时点没下载的歌，弹一下告诉他原因 */
#net-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: min(86vw, 420px); padding: 11px 16px; border-radius: 999px;
  background: #1f5f88ee; color: #fff; font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 8px 22px #2d7ca555; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
#net-toast.show { opacity: 1; }
