/* ================================================================
   player.css — プレイヤーバー・ヒーロー・歌詞パネル
   ================================================================ */

/* ---- ヒーローエリア ---- */
.now-playing-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  min-height: 340px;
}

.album-art {
  width: 280px; height: 280px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.1);
}
.album-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 16px;
}

.song-title-hero {
  font-family: 'Orbitron', monospace;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px; letter-spacing: 1px;
}
.song-artist-hero { font-size: 16px; color: var(--text-dim); font-weight: 400; letter-spacing: 2px; }

/* ---- 歌詞パネル（デスクトップ） ---- */
.lyrics-panel { display: flex; flex-direction: column; justify-content: center; }
.lyrics-panel-title {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 4px;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 20px;
}
.lyrics-scroll-container {
  height: 240px; overflow: hidden; position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.lyrics-inner { transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.lyric-line {
  padding: 8px 0;
  font-size: 20px; font-weight: 600;
  color: var(--text-muted);
  transition: all 0.4s;
  transform: scale(0.95); transform-origin: left center;
  line-height: 1.4;
  font-family: 'Noto Sans JP', 'Rajdhani', sans-serif;
}
.lyric-line.active {
  color: var(--accent); font-size: 24px;
  transform: scale(1);
  text-shadow: 0 0 30px rgba(0,212,255,0.6);
}
.lyric-line.past { opacity: 0.5; }

/* ---- デスクトッププレイヤーバー ---- */
.player-bar {
  grid-column: 1 / -1;
  background: rgba(8,12,24,0.97);
  backdrop-filter: blur(30px);
  border-top: 1px solid rgba(0,212,255,0.12);
  padding: 16px 28px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center; gap: 20px;
  position: relative; z-index: 100;
}
.player-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.4;
}

.current-track { display: flex; align-items: center; gap: 12px; }
.current-track-thumb {
  width: 52px; height: 52px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.current-track-info { flex: 1; min-width: 0; }
.current-track-title  { font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.current-track-artist { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }

.like-btn {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 4px;
  transition: all 0.2s; flex-shrink: 0;
}
.like-btn.liked { color: #ff4d7d; }
.like-btn:hover { transform: scale(1.2); }

.player-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.controls-row    { display: flex; align-items: center; gap: 20px; }

.ctrl-btn {
  background: none; border: none;
  color: var(--text-dim); cursor: pointer;
  font-size: 22px; padding: 4px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { color: var(--text); transform: scale(1.1); }

.play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #000; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transition: all 0.2s; flex-shrink: 0;
}
.play-btn:hover  { transform: scale(1.08); box-shadow: 0 0 30px rgba(0,212,255,0.6); }
.play-btn:active { transform: scale(0.96); }

.progress-container { width: 100%; display: flex; align-items: center; gap: 10px; }
.time-label {
  font-family: 'Orbitron', monospace;
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; min-width: 36px;
}

.player-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.volume-icon  { font-size: 18px; color: var(--text-dim); cursor: pointer; }

/* range input 共通 */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 80px; height: 4px;
  background: var(--surface2); border-radius: 4px;
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  cursor: pointer;
}
input[type="range"].progress-input { flex: 1; width: auto; }

/* EQバー */
.eq-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq-bar {
  width: 3px; background: var(--accent); border-radius: 1px;
  animation: eqAnim 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { animation-delay: 0s;    height: 8px; }
.eq-bar:nth-child(2) { animation-delay: 0.1s;  height: 14px; }
.eq-bar:nth-child(3) { animation-delay: 0.2s;  height: 10px; }
.eq-bar:nth-child(4) { animation-delay: 0.15s; height: 16px; }
.eq-bar:nth-child(5) { animation-delay: 0.05s; height: 6px; }
@keyframes eqAnim { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.eq-bars.paused .eq-bar { animation-play-state: paused; }

/* 歌詞フルビュー */
.lyrics-full-view  { max-width: 700px; margin: 0 auto; }
.lyrics-full-title {
  font-family: 'Orbitron', monospace;
  font-size: 24px; font-weight: 700;
  margin-bottom: 4px; letter-spacing: 2px;
}
.lyrics-full-artist { color: var(--text-dim); margin-bottom: 40px; font-size: 16px; }
.lyrics-full-line {
  font-size: 22px;
  font-family: 'Noto Sans JP', 'Rajdhani', sans-serif;
  padding: 10px 0 10px 20px;
  color: var(--text-muted);
  transition: all 0.4s;
  border-left: 3px solid transparent;
  cursor: pointer; line-height: 1.5;
}
.lyrics-full-line:hover  { color: var(--text); }
.lyrics-full-line.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-size: 24px;
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
}
.lyrics-full-line.past { opacity: 0.5; }


/* ミニプレイヤーサムネイル（共通） */
.mini-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
