/* ====== 音訊播放中動畫效果 ====== */
.t180-audio-item.playing {
  animation: pulse 1.2s infinite;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transition: all 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1.05); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
  100% { transform: scale(1.05); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
}

/* ====== 佈局 ====== */
.t180-audio-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.t180-audio-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  box-sizing: border-box;
}

.t180-audio-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
  display: block;
}

.audio-hint {
  margin-top: 8px;
  font-size: 0.95em;
  color: #666;
  text-align: center;
}

/* ====== 圖片大小控制（由短代碼 size 參數套用 class） ====== */
.t180-audio-gallery.size-small .t180-audio-item img { max-width: 200px; }
.t180-audio-gallery.size-medium .t180-audio-item img { max-width: 300px; }
.t180-audio-gallery.size-large .t180-audio-item img { max-width: 1200px; }
.t180-audio-gallery.size-full .t180-audio-item img { max-width: 100%; }

/* ====== 響應式：手機/平板 ====== */
@media (max-width: 600px) {
  .t180-audio-item { flex: 1 1 90%; max-width: 90%; }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .t180-audio-item { flex: 1 1 45%; max-width: 45%; }
}

/* ====== 桌機：根據 cols-X class 決定欄數 ====== */
@media (min-width: 1025px) {
  .t180-audio-gallery.cols-1 .t180-audio-item { flex: 1 1 100%; max-width: 600px; }
  .t180-audio-gallery.cols-2 .t180-audio-item { flex: 1 1 45%; max-width: 45%; }
  .t180-audio-gallery.cols-3 .t180-audio-item { flex: 1 1 30%; max-width: 30%; }
}
