/* shared.css — Common styles used across all pages */

:root {
  --bg: #1b1918;
  --page-bg: #2e2b28;
  --text: #ebe7e1;
  --text-muted: #cdc8c2;
  --text-dim: #8a8580;
  --border: #34322f;
  --border-hover: #45433f;
  --accent: #e63946;
  --accent-hover: #c12a39;
  --shadow-heavy: 0 20px 80px rgba(0, 0, 0, 1), 0 8px 32px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  min-height: min(100vh, 1440px);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(193, 42, 57, 0.6);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(193, 42, 57, 0.8);
}

html {
  scrollbar-color: rgba(193, 42, 57, 0.6) var(--bg);
  overflow-y: scroll;
}

/* Shimmer loading animation */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* SoundCloud embed base — shimmer + visual defaults */
.sc-player {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: linear-gradient(270deg, #8a0038, #4a1d80, #1a4f8a, #0a6b50, #8a6500, #8a0038);
  background-size: 600% 100%;
  animation: shimmer 3s ease-in-out infinite;
  transition: opacity 0.5s ease, filter 0.5s ease;
  box-shadow: var(--shadow-heavy);
}

/* Failed embed — stop shimmer, show muted state + overlay on wrapper */
.sc-player-failed {
  animation: none;
  background: #2b2926;
  opacity: 0.4;
  filter: grayscale(1);
}

.sc-embed:has(.sc-player-failed)::after {
  content: 'Track unavailable';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
  border-radius: 20px;
  background: rgba(27, 25, 24, 0.7);
}

