@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  
  --bg-color: #030308;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.4);
  
  --color-accent: #00e5ff;
  --color-purple: #bd00ff;
  --color-glow: rgba(0, 229, 255, 0.15);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
}

body {
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

/* Background Canvas */
#galaxy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at center, #0a0a23 0%, #030308 100%);
}

#nebula-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 25%, rgba(189, 0, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0, 229, 255, 0.04) 0%, transparent 50%);
  filter: blur(40px);
}

/* Main Container */
.music-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.music-nav {
  position: sticky;
  top: 0;
  padding: 1rem 0;
  margin-bottom: 2.5rem;
  z-index: 100;
  background: rgba(3, 3, 8, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.back-link svg {
  fill: currentColor;
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Header */
.music-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.music-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.music-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Main Content & Player Card */
.music-main {
  display: flex;
  justify-content: center;
  width: 100%;
}

.player-card {
  width: 100%;
  background: rgba(10, 10, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(189, 0, 255, 0.05),
    0 0 60px rgba(0, 229, 255, 0.03);
  transition: var(--transition-smooth);
}

.player-card:hover {
  background: rgba(8, 8, 18, 0.92);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(189, 0, 255, 0.2),
    0 0 70px rgba(0, 229, 255, 0.12);
}

/* Bandcamp Embed Styling */
.bandcamp-embed-wrapper {
  position: relative;
  background: rgba(3, 3, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
  transition: var(--transition-fast);
}

.bandcamp-embed-wrapper::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
  z-index: -1;
  opacity: 0.15;
  transition: var(--transition-smooth);
}

.bandcamp-embed-wrapper:hover::after {
  opacity: 0.4;
}

/* External Media Streaming Buttons */
.media-actions {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.media-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
}

.media-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hover effects when parent player-card is hovered */
.player-card:hover .media-text {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.player-card:hover .media-btn {
  color: var(--text-primary);
  font-size: 0.92rem;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.media-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.media-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.media-btn.spotify:hover {
  border-color: rgba(30, 215, 96, 0.4);
  box-shadow: 
    0 4px 15px rgba(30, 215, 96, 0.15),
    0 0 10px rgba(30, 215, 96, 0.1);
  color: #1ed760;
}

.media-btn.youtube:hover {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 
    0 4px 15px rgba(255, 0, 0, 0.15),
    0 0 10px rgba(255, 0, 0, 0.1);
  color: #ff0000;
}

.media-btn.bandcamp:hover {
  border-color: rgba(98, 154, 169, 0.4);
  box-shadow: 
    0 4px 15px rgba(98, 154, 169, 0.15),
    0 0 10px rgba(98, 154, 169, 0.1);
  color: #629aa9;
}

/* Footer */
.music-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 3rem 1.5rem 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.footer-mail-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-mail-link:hover {
  color: var(--color-accent);
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .music-container {
    padding: 1.5rem 1rem 3rem 1rem;
  }
  
  .music-header h1 {
    font-size: 2rem;
  }
  
  .music-subtitle {
    font-size: 0.85rem;
  }
  
  .player-card {
    padding: 1.25rem;
  }
  
  .media-links {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .media-btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }
}
