/* ====== Music Hero ====== */
.music-hero {
  background: linear-gradient(135deg, #f3eef8 0%, #e8f4f0 100%);
  border-radius: var(--radius-lg, 12px);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 36px;
}
.music-hero-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mode-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.music-hero-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Play Button */
.music-play-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.music-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: none;
  background: var(--mode-color);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(155, 125, 219, 0.35);
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.music-play-btn:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(155, 125, 219, 0.45); }
.music-play-btn.playing::before,
.music-play-btn.playing::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(155, 125, 219, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}
.music-play-btn.playing::after { animation-delay: 1s; }
@keyframes pulse-ring {
  0% { width: 80px; height: 80px; opacity: 1; }
  100% { width: 160px; height: 160px; opacity: 0; }
}

/* Equalizer */
.music-equalizer {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 20px;
  justify-content: center;
}
.eq-bar {
  width: 3px;
  background: linear-gradient(to top, var(--mode-color), #4ECDC4);
  border-radius: 2px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { animation-delay: 0s; height: 12px; }
.eq-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.eq-bar:nth-child(4) { animation-delay: 0.1s; height: 15px; }
.eq-bar:nth-child(5) { animation-delay: 0.3s; height: 10px; }
@keyframes eq-bounce {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

/* Progress */
.music-progress { max-width: 400px; margin: 0 auto 16px; }
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: var(--mode-color);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
}
.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Meta */
.music-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.music-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.music-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0,0,0,0.06);
  color: var(--text-sub);
}
.music-tag.sm { padding: 2px 7px; font-size: 11px; }
.music-hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  align-items: center;
}
.music-like-btn {
  border: none; background: none;
  font-size: 13px; cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.music-like-btn:hover { background: rgba(0,0,0,0.05); }

/* Volume */
.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.volume-icon { cursor: pointer; font-size: 16px; }
.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mode-color);
  cursor: pointer;
}

/* ====== Sections ====== */
.music-section { margin-bottom: 36px; }
.music-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ====== Playlist Grid ====== */
.music-playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.music-playlist-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.music-playlist-card:hover {
  border-color: var(--mode-color);
  box-shadow: var(--shadow-md);
}
.playlist-color-bar { height: 4px; }
.playlist-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--mode-color);
  padding: 12px 14px 0;
}
.playlist-card-title {
  font-size: 15px;
  font-weight: 700;
  padding: 4px 14px 0;
}
.playlist-card-info {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 14px 0;
}
.playlist-card-stats {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 14px 12px;
}

/* ====== Music Card Grid ====== */
.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.music-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.music-card:hover {
  border-color: var(--mode-color);
  box-shadow: var(--shadow-md);
}
.music-card-color { height: 4px; position: relative; }
.music-card-body { padding: 14px; }
.music-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-card-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.music-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.music-card-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--mode-color);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.music-card-play:hover { transform: scale(1.1); }

/* ====== Playlist Controls ====== */
.pl-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.pl-ctrl-btn {
  width: 40px; height: 40px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}
.pl-ctrl-btn:hover { background: rgba(0,0,0,0.1); }

/* Track List */
.pl-track-list { margin: 24px 0; }
.pl-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.pl-track:hover { background: rgba(0,0,0,0.02); }
.pl-track.active { background: rgba(155,125,219,0.06); }
.pl-track-num {
  width: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}
.pl-track.active .pl-track-num { color: var(--mode-color); font-weight: 700; }
.pl-track-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-track.active .pl-track-title { color: var(--mode-color); font-weight: 600; }
.pl-track-dur {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pl-track-play {
  width: 28px; height: 28px;
  border: none;
  background: var(--mode-color);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.pl-track:hover .pl-track-play,
.pl-track.active .pl-track-play { opacity: 1; }
.pl-track-play:hover { transform: scale(1.1); }

/* ====== Responsive ====== */
/* ── YouTube 추천 섹션 ── */
.yt-notice {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; margin-bottom: 16px;
  background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px;
  font-size: 12px; color: #8d6e00; line-height: 1.4;
}
.yt-notice svg { flex-shrink: 0; color: #f9a825; }
.yt-cat-chips { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.yt-cat-chip {
  font-size: 11px; padding: 4px 12px; border-radius: 20px;
  background: #f5f5f5; color: #666; font-weight: 500;
}
.yt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.yt-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border, #eee);
  transition: transform .15s, box-shadow .15s;
  background: #fff;
}
.yt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.yt-card-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000;
}
.yt-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s;
}
.yt-card:hover .yt-card-thumb img { transform: scale(1.05); }
.yt-card-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0; transition: opacity .2s;
}
.yt-card:hover .yt-card-play-overlay { opacity: 1; }
.yt-card-body { padding: 12px 14px; }
.yt-card-title {
  font-size: 13px; font-weight: 600; color: #222;
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-card-meta { display: flex; gap: 4px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .music-hero { padding: 24px 16px; }
  .music-play-btn { width: 64px; height: 64px; }
  .music-play-btn svg { width: 24px; height: 24px; }
  @keyframes pulse-ring {
    0% { width: 64px; height: 64px; opacity: 1; }
    100% { width: 130px; height: 130px; opacity: 0; }
  }
  .music-hero-title { font-size: 17px; }
  .music-playlist-grid { grid-template-columns: repeat(2, 1fr); }
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .music-cat-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .music-chip { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 480px) {
  .music-playlist-grid { grid-template-columns: 1fr; }
  .music-grid { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: 1fr; }
  .music-progress { max-width: 100%; }
}
