/* 英语课件音频 · 深色播放器风格，手机竖屏优先 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #12141c; --card: #1b1e2a; --line: #2a2e3f;
  --ink: #eef1f8; --sub: #8b93a7; --brand: #6ea8fe; --brand2: #9f7afe;
}
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: 96px;
}
.top { padding: 22px 18px 10px; position: sticky; top: 0; background: linear-gradient(var(--bg) 78%, transparent); z-index: 5; }
.top h1 { font-size: 21px; font-weight: 700; }
.sub { color: var(--sub); font-size: 12.5px; margin-top: 4px; }

#track-list { list-style: none; padding: 4px 12px calc(84px + env(safe-area-inset-bottom)); }
.tr {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 9px; cursor: pointer; transition: transform .08s;
}
.tr:active { transform: scale(.98); }
.tr .num {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.tr.playing .num { box-shadow: 0 0 0 2px var(--brand), 0 0 18px rgba(110,168,254,.55); }
.tr .info { flex: 1; min-width: 0; }
.tr .name { font-size: 15.5px; font-weight: 600; }
.tr.playing .name { color: var(--brand); }
.tr .meta { color: var(--sub); font-size: 11.5px; margin-top: 3px; }
.tr .eq { width: 20px; flex: none; display: none; align-items: flex-end; gap: 2px; height: 16px; }
.tr.playing .eq { display: flex; }
.tr .eq i { width: 3px; background: var(--brand); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.tr .eq i:nth-child(2) { animation-delay: .25s; } .tr .eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }

/* 迷你播放条 */
.mini {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(27,30,42,.92); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; z-index: 40;
  overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.5);
}
.mini-progress { height: 3px; background: var(--line); }
.mini-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.mini-row { display: flex; align-items: center; padding: 10px 14px; gap: 10px; }
.mini-title { flex: 1; font-size: 14.5px; font-weight: 600; }
.mini-btns { display: flex; gap: 6px; }
.mini button {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent;
  color: var(--ink); font-size: 17px; cursor: pointer;
}
.mini button.big { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-size: 15px; }
.hidden { display: none !important; }

/* 全屏面板 */
.full {
  position: fixed; inset: 0; z-index: 60;
  background: radial-gradient(120% 90% at 50% 0%, #232842 0%, var(--bg) 62%);
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
}
.full-head { display: flex; align-items: center; justify-content: space-between; }
.full-head button { background: none; border: none; color: var(--sub); font-size: 24px; cursor: pointer; width: 40px; }
.full-name { font-size: 15px; font-weight: 600; }
.cover {
  margin: 26px auto 8px; width: min(62vw, 250px); height: min(62vw, 250px); border-radius: 26px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 800; color: rgba(255,255,255,.95);
  box-shadow: 0 22px 60px rgba(110,168,254,.28);
}
.cover.spin { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.seek { margin-top: 26px; }
.seek input[type=range] { width: 100%; -webkit-appearance: none; height: 5px; border-radius: 3px; background: var(--line); outline: none; }
.seek input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: pointer;
}
.times { display: flex; justify-content: space-between; color: var(--sub); font-size: 12px; margin-top: 7px; }
.controls { display: flex; align-items: center; justify-content: center; gap: 34px; margin-top: 22px; }
.ctl { background: none; border: none; color: var(--ink); font-size: 30px; cursor: pointer; width: 52px; height: 52px; }
.ctl.main {
  width: 66px; height: 66px; border-radius: 50%; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 28px rgba(110,168,254,.4);
}
.toggles { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.tog {
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  font-size: 12.5px; padding: 8px 14px; border-radius: 20px; cursor: pointer;
}
.tog.on { color: var(--brand); border-color: var(--brand); background: rgba(110,168,254,.12); }
.hint { text-align: center; color: var(--sub); font-size: 11.5px; margin-top: 16px; }

.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%);
  background: rgba(20,22,30,.94); color: var(--ink); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 12px; font-size: 13.5px; z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 86vw;
}
.toast.show { opacity: 1; }
