/* ============================================================
   铁锤小站 · 音乐馆样式（music.html）
   ============================================================ */

.hall-wrap { margin-top: 30px; }
.hall-toolbar { margin-top: 0; align-items: center; }
.hall-netease { white-space: nowrap; }

/* ---------- 歌曲卡片 ---------- */
.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 120px;
}
.hall-card {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--inset-top), 5px 5px 0 var(--shadow-c);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hall-card:hover { transform: translate(-2px, -4px); box-shadow: var(--inset-top), 8px 8px 0 var(--shadow-c); }
.hall-card.playing {
  background: var(--blue-soft);
  border-color: var(--blue-deep);
  box-shadow: var(--inset-top), 5px 5px 0 var(--shadow-c);
}
.hall-card-head { display: flex; align-items: center; gap: 12px; }
.hall-cover {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--shadow-c);
  background: var(--bg-soft);
}
.hall-card.playing .hall-cover { animation: musicPulse 1.6s ease-in-out infinite; }
.hall-card-title { font-family: var(--font-display); font-size: 17px; line-height: 1.4; color: var(--ink); }
.hall-card-artist { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.hall-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hall-card-foot { display: flex; align-items: center; gap: 8px; }
.hall-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(180deg, var(--btn-grad-top) 0%, var(--btn-grad-bottom) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--inset-top), 3px 3px 0 var(--shadow-c);
  transition: transform 0.15s ease;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.hall-play:hover { transform: translate(-2px, -2px); }
.hall-card.playing .hall-play { background: var(--card); color: var(--ink); text-shadow: none; }
.hall-source { margin-left: auto; }
.hall-note { font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; }

/* 网易云官方外链播放器容器 */
.hall-embed {
  border: 2px dashed var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hall-embed iframe { width: 100%; border: 0; display: block; }

/* 直链音频进度条 */
.hall-progress {
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.hall-progress .bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--btn-grad-top), var(--btn-grad-bottom));
  border-radius: 999px;
  transition: width 0.25s linear;
}
.hall-time { font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- 站外曲库（Internet Archive） ---------- */
.hall-ext {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--inset-top), 5px 5px 0 var(--shadow-c);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.hall-ext-head {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--line);
  margin-bottom: 12px;
}
.hall-ext-search { display: flex; gap: 10px; }
.hall-ext-search .input { flex: 1; }
.hall-ext .hall-note { margin: 10px 0 6px; }
.hall-ext-status { font-size: 13px; color: var(--blue-deep); min-height: 20px; font-weight: 600; }
[data-theme="dark"] .hall-ext-status { color: var(--blue); }
.hall-save { background: var(--yellow-soft) !important; }

/* ---------- 底部播放条 ---------- */
.hall-player {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(560px, calc(100vw - 32px));
}
.hall-player-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--inset-top), 6px 6px 0 var(--shadow-c);
  padding: 10px 14px 10px 10px;
}
.hall-player-disc {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--blob-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hall-card.playing .hall-cover,
.hall-player.playing-state .hall-player-disc { animation: hallSpin 3.2s linear infinite; }
@keyframes hallSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hall-player-info { flex: 1; min-width: 0; }
.hall-player-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-player-sub { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-player .icon-btn { width: 38px; height: 38px; font-size: 15px; flex-shrink: 0; }
.hall-player-stop { background: var(--pink-soft); }

@media (max-width: 560px) {
  .hall-netease { display: none; }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-player { bottom: 14px; }
}
