/* BLAKKATZ shared music player shell */
.soundcloud-embed { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.music-panel {
  position: fixed;
  right: 0.9rem;
  bottom: 1rem;
  width: min(330px, calc(100vw - 2rem));
  padding: 0.9rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,8,8,0.95);
  box-shadow: 0 34px 90px rgba(0,0,0,0.4);
  z-index: 21;
  backdrop-filter: blur(24px);
  transform: translateX(calc(100% + 1rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.28s ease, visibility 0.28s ease;
}
.music-panel.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.music-toggle {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 72px;
  height: 72px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.music-toggle.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: drift-toggle 2.2s ease-in-out infinite;
}
.music-toggle.closing {
  transform: translateX(-120%) rotate(-15deg) scale(0.9);
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.music-toggle.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.music-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.28));
  transition: transform 0.2s ease, filter 0.2s ease;
  transform: rotate(0deg) scale(1);
}
.music-toggle:hover img { transform: rotate(8deg) scale(1.06); filter: drop-shadow(0 0 20px rgba(255,255,255,0.4)); }
.music-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.music-close:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }
@keyframes drift-toggle {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.04); }
}
.music-panel-inner { display: grid; gap: 1rem; }
.music-panel-header { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.15rem; }
.custom-player { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; }
.custom-player-art { width: 88px; height: 88px; object-fit: cover; border-radius: 22px; background: #111; box-shadow: inset 0 0 14px rgba(0,0,0,0.7); }
.custom-player-meta { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.custom-player-artist { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.custom-player-track { overflow: hidden; color: var(--accent, #e8e8e8); font-size: 0.96rem; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.custom-player-status { color: rgba(255,255,255,0.55); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.custom-player-bottom { display: flex; gap: 0.9rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 0.6rem; }
.custom-player-progress-wrap { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 0; }
.custom-player-progress { height: 4px; width: 100%; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.12); box-shadow: inset 0 0 12px rgba(255,255,255,0.08); }
.custom-player-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6)); transition: width 0.15s ease; }
.custom-player-time { display: flex; justify-content: space-between; font-size: 0.68rem; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; }
.custom-player-controls-row { display: flex; gap: 0.55rem; }
.np-btn { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.08); color: var(--accent, #e8e8e8); font: inherit; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; padding: 0.55rem 0.85rem; border-radius: 14px; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.np-btn:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); border-color: rgba(255,255,255,0.25); color: #fff; }
.np-btn.icon { position: relative; overflow: hidden; }
.np-btn.icon::before { display: inline-block; font-size: 1.15rem; line-height: 1; }
.np-btn.icon.prev::before { content: '\23EE'; }
.np-btn.icon.play::before { content: '\25B6'; }
.np-btn.icon.play.playing::before { content: '\275A\275A'; }
.np-btn.icon.next::before { content: '\23ED'; }
@media (max-width: 860px) {
  .music-panel {
    position: fixed;
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
  }
}
@media (max-width: 900px) {
  .music-panel { right: 0.75rem; left: 0.75rem; width: auto; bottom: 0.75rem; }
  .music-toggle { right: 0.5rem; bottom: 0.5rem; width: 56px; height: 56px; }
}
@media (max-width: 640px) {
  .custom-player { grid-template-columns: 1fr; }
  .custom-player-art { width: 100%; height: 140px; }
  .np-btn { min-width: 44px; min-height: 38px; }
}