﻿:root {
  --bg: #05010a;
  --bg-accent: #110822;
  --text: #f8f8ff;
  --muted: rgba(248, 248, 255, 0.7);
  --primary: #ff5f6d;
  --primary-dark: #d94c58;
  --secondary: #36cfd3;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-bright: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.15);
}


/* Dark mode (default) */
:root {
  --bg: #05010a;
  --bg-accent: #110822;
  --text: #f8f8ff;
  --muted: rgba(248, 248, 255, 0.7);
  --primary: #ff5f6d;
  --primary-dark: #d94c58;
  --secondary: #36cfd3;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-bright: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.15);
  --progress-bg: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(5, 1, 10, 0.4);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --button-bg: rgba(255, 255, 255, 0.08);
  --button-hover: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
*,
*::before,
*::after {
  will-change: auto;
}

/* Smooth transitions for theme switching - optimized */
[data-theme] {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme] * {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* GPU-accelerated transforms */
[data-theme] button,
[data-theme] a,
[data-theme] input,
[data-theme] select,
[data-theme] textarea {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Mobile touch optimizations */
button,
a,
input[type="range"],
.progress-bar,
.now-playing-progress-bar {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

@media (max-width: 768px) {
  button, a {
    -webkit-tap-highlight-color: rgba(255, 95, 109, 0.2);
  }
  
  .progress-bar,
  .now-playing-progress-bar {
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x;
  }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at top, #2b1055 0%, #0b0220 50%, #04010a 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  padding: 4rem max(5vw, 2.5rem) 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero {
  padding: 4rem max(5vw, 2.5rem) 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero__content h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin: 0.4rem 0;
  color: var(--text);
}

.hero__content .eyebrow {
  letter-spacing: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--secondary);
}

.hero__content .lede {
  font-size: 1.2rem;
  max-width: 45ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero__cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__art {
  position: relative;
  width: 100%;
}

.hero__art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  aspect-ratio: 1;
}

.hero__art-grid--three {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero__art-grid--four {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.hero__art-grid--five {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.hero__art-grid--six {
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.hero__art-grid--seven {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .hero__art-grid--seven {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero__art-grid--seven {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__art-grid--seven {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero__art-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  contain: layout style paint;
}

.hero__art-item:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 12px 40px rgba(255, 95, 109, 0.3);
}

.hero__art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}


.albums-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-heading p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto;
}

.album-showcase {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.album-showcase--reverse {
  grid-template-columns: 1fr 400px;
}

.album-showcase--reverse .album-showcase__artwork {
  order: 2;
}

.album-showcase--reverse .album-showcase__content {
  order: 1;
}

.album-showcase__artwork {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
}

.album-showcase__artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.album-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  opacity: 0.6;
  z-index: -1;
  filter: blur(20px);
  will-change: opacity;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.album-glow--chromatic {
  background: radial-gradient(circle at center, rgba(255, 95, 109, 0.8), rgba(54, 207, 211, 0.6));
}

.album-glow--better-times {
  background: radial-gradient(circle at center, rgba(255, 214, 102, 0.8), rgba(255, 95, 109, 0.6));
}

.album-glow--elements {
  background: radial-gradient(circle at center, rgba(255, 95, 109, 0.8), rgba(54, 207, 211, 0.6), rgba(255, 214, 102, 0.5));
}

.album-glow--norge {
  background: radial-gradient(circle at center, rgba(220, 20, 60, 0.8), rgba(255, 95, 109, 0.6), rgba(255, 255, 255, 0.4));
}

.album-glow--bombaristoclat {
  background: radial-gradient(circle at center, rgba(255, 214, 102, 0.8), rgba(255, 165, 0, 0.6), rgba(54, 207, 211, 0.5));
}

.album-glow--hellane-jella-dussen {
  background: radial-gradient(circle at center, rgba(54, 207, 211, 0.8), rgba(255, 95, 109, 0.6), rgba(255, 214, 102, 0.5));
}

.album-glow--mare-de-saudade {
  background: radial-gradient(circle at center, rgba(255, 214, 102, 0.8), rgba(54, 207, 211, 0.6), rgba(255, 95, 109, 0.5));
}

.album-showcase:hover .album-glow {
  opacity: 0.8;
}

.album-showcase__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.album-header {
  margin-bottom: 0.5rem;
}

.album-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.album-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.album-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.album-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tag {
  padding: 0.4rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 200ms ease;
}

.tag:hover {
  background: var(--panel-bright);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.album-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.btn-album-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(120deg, var(--primary), #ffc371);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.btn-album-play:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 24px rgba(255, 95, 109, 0.4);
}

.btn-album-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-control {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transform: translateZ(0);
  will-change: transform, background-color, border-color;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.btn-control:hover {
  background: var(--panel-bright);
  border-color: var(--primary);
  transform: scale(1.05) translateZ(0);
}

.btn-control.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}


.btn-control svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tracks-container {
  margin-top: 1rem;
}

.tracks-container h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tracklist li {
  padding: 0;
}

.track-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, background-color, border-color;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  contain: layout style;
}

.track-item:hover {
  background: var(--panel-bright);
  border-color: var(--primary);
  transform: translateX(4px) translateZ(0);
}

.track-item.is-playing {
  background: var(--panel-bright);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.track-play-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-bright);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transform: translateZ(0);
  will-change: transform, background-color, border-color;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.track-play-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  transform: scale(1.1) translateZ(0);
}


.track-play-btn.playing {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}


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

.track-play-btn .icon-pause {
  display: none;
}

.track-play-btn.playing .icon-play {
  display: none;
}

.track-play-btn.playing .icon-pause {
  display: block;
}

.track-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  width: 2.5rem;
  flex-shrink: 0;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.track-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-key {
  font-size: 0.85rem;
  color: var(--muted);
}

.track-time-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'Space Grotesk', monospace;
  flex-shrink: 0;
}

.track-time {
  min-width: 3rem;
  text-align: right;
}

.track-duration {
  min-width: 3rem;
  text-align: left;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--progress-bg);
  cursor: pointer;
  transform: translateZ(0);
  will-change: height;
  transition: height 150ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  contain: layout style paint;
}

.track-item:hover .progress-bar {
  height: 4px;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transform: translateZ(0);
  will-change: transform;
  transition: none; /* No transition, we animate with transform via JS */
  border-radius: 0 0 12px 12px;
  backface-visibility: hidden;
}

/* Hide any native audio controls */
audio {
  display: none;
}

/* Icon styling */
.icon-play, .icon-pause, .icon-shuffle, .icon-repeat {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.panel--bright {
  background: var(--panel-bright);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.panel__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
}

.panel__card h3 {
  margin-top: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.meta li {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.btn:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 20px rgba(255, 95, 109, 0.3);
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), #ffc371);
  color: #05010a;
}

.btn.secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn.secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn.tertiary {
  border-color: transparent;
  color: var(--secondary);
  padding-left: 0;
}

.btn.tertiary:hover {
  padding-left: 0.5rem;
}

code {
  font-family: 'Space Grotesk', monospace;
  background: var(--panel);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  color: var(--text);
}

/* Now Playing Bar */
.now-playing-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 85px;
  max-height: 85px;
  background: var(--panel-bright);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr 200px;
  gap: 1.5rem;
  align-items: center;
  padding: 0.75rem max(2rem, 5vw) 1.5rem;
  z-index: 1000;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease, background-color 300ms ease;
  box-shadow: 0 -4px 24px var(--shadow-color);
}

.now-playing-bar-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}


@media (max-width: 1200px) {
  .now-playing-bar {
    padding: 0.75rem 1.5rem;
    gap: 1rem;
  }
  
  .now-playing-bar-content {
    gap: 0.4rem;
  }
}

@media (max-width: 768px) {
  .now-playing-bar {
    min-height: 85px;
    max-height: 85px;
    padding: 0.75rem 1rem 1.25rem;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }
  
  .now-playing-bar-content {
    gap: 0.5rem;
    min-width: 0;
  }
  
  .now-playing-track {
    display: none;
  }
  
  .now-playing-extra {
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .now-playing-main-controls {
    gap: 0.75rem;
  }
  
  .now-playing-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .now-playing-btn.play-pause-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
  
  .now-playing-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .now-playing-progress-container {
    gap: 0.5rem;
  }
  
  .now-playing-time {
    font-size: 0.7rem;
    min-width: 2rem;
  }
  
  .now-playing-progress-bar {
    min-height: 4px;
  }
  
  body {
    padding-bottom: 85px !important;
  }
}

.now-playing-bar.hidden {
  transform: translateY(100%) translateZ(0);
  opacity: 0;
  pointer-events: none;
}

.now-playing-progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.now-playing-time-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 80px;
  justify-content: flex-end;
}

#now-playing-current-time,
#now-playing-total-time {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}


.now-playing-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.now-playing-artwork {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--border);
}

.now-playing-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.now-playing-artwork .now-playing-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  opacity: 0;
  transition: opacity 150ms ease;
  cursor: pointer;
}


.now-playing-artwork:hover .now-playing-play-btn {
  opacity: 1;
}

.now-playing-artwork .now-playing-play-btn svg {
  width: 24px;
  height: 24px;
}

.now-playing-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.now-playing-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.now-playing-name:hover {
  text-decoration: underline;
}

.now-playing-album {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
}

.now-playing-main-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.now-playing-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  position: relative;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms ease;
  backface-visibility: hidden;
  border-radius: 50%;
}

.now-playing-btn:hover {
  transform: scale(1.1) translateZ(0);
  color: var(--primary);
}

.now-playing-btn:active {
  transform: scale(0.95) translateZ(0);
}

.now-playing-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.now-playing-btn.play-pause-btn {
  width: 40px;
  height: 40px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
}

.now-playing-btn.play-pause-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1) translateZ(0);
}


.now-playing-btn.play-pause-btn svg {
  width: 18px;
  height: 18px;
}

.now-playing-btn .icon-play,
.now-playing-btn .icon-pause {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  fill: currentColor;
}

.now-playing-btn.playing .icon-play {
  display: none;
}

.now-playing-btn.playing .icon-pause {
  display: block;
}

.now-playing-btn:not(.playing) .icon-pause {
  display: none;
}

.now-playing-btn:not(.playing) .icon-play {
  display: block;
}


.now-playing-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: height, background-color;
  transition: height 150ms ease, background-color 150ms ease;
  backface-visibility: hidden;
}


.now-playing-progress-bar:hover {
  height: 6px;
  background: var(--progress-bg-hover, rgba(255, 255, 255, 0.3));
}


.now-playing-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  transition: none;
  backface-visibility: hidden;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(var(--primary-rgb, 138, 43, 226), 0.4);
}

.now-playing-progress-bar:hover .now-playing-progress-fill {
  box-shadow: 0 0 8px rgba(var(--primary-rgb, 138, 43, 226), 0.6);
}

.now-playing-time {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Space Grotesk', monospace;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}


.now-playing-extra {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-left: 1rem;
}

.volume-btn {
  position: relative;
}

.volume-control {
  display: flex;
  align-items: center;
  width: 120px;
}

.volume-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Scandinavian Style Footer */
.footer {
  padding: 0;
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  margin-bottom: 105px; /* Space for now playing bar */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem max(5vw, 2.5rem) 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}


.footer-subheading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}


.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 280px;
}


.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 200ms ease, transform 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateZ(0);
  will-change: color, transform;
  backface-visibility: hidden;
}


.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px) translateZ(0);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-link-github {
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.footer-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-copyright {
  margin: 0;
  color: var(--muted);
}


.footer-built {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}


.footer-heart {
  color: var(--primary);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

body {
  transition: padding-bottom 300ms cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 0;
}

body[style*="padding-bottom"] {
  padding-bottom: 105px !important;
}

/* 8-bit Visualizer */
.visualizer-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  will-change: contents;
  backface-visibility: hidden;
}

.visualizer-canvas {
  width: 120px;
  height: 120px;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  will-change: contents;
}

.visualizer-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--panel-bright);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.7;
  transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
  z-index: 10;
  transform: translateZ(0);
  will-change: opacity, background-color, border-color;
  backface-visibility: hidden;
}

.visualizer-toggle:hover {
  opacity: 1;
  background: var(--panel);
  border-color: var(--primary);
}

.visualizer-toggle.active {
  opacity: 1;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}


.visualizer-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}



@media (max-width: 1024px) {
  .album-showcase,
  .album-showcase--reverse {
    grid-template-columns: 1fr;
  }

  .album-showcase--reverse .album-showcase__artwork,
  .album-showcase--reverse .album-showcase__content {
    order: initial;
  }

  .album-showcase__artwork {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero__art-grid {
    grid-template-columns: 1fr;
    aspect-ratio: 1 / 1;
  }
  
  .hero__art-grid--three {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hero__art-grid--four {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hero__art-grid--five {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hero__art-grid--six {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hero__art-grid--seven {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero__art-item {
    aspect-ratio: 1;
  }

  .track-item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
    min-height: 60px;
  }
  
  .track-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .track-number {
    display: none;
  }
  
  .track-info {
    min-width: 0;
  }

  .track-time-info {
    grid-column: 1 / -1;
    justify-self: flex-start;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }
  
  .track-time, .track-duration {
    font-size: 0.85rem;
  }

  .progress-bar {
    grid-column: 1 / -1;
    position: relative;
    margin-top: 0.5rem;
    border-radius: 12px;
    height: 4px;
    min-height: 4px;
  }
  
  .progress-bar:hover {
    height: 6px;
  }

  .album-controls {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .btn-album-play {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .btn-control {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .btn-control svg {
    width: 18px;
    height: 18px;
  }

  .album-showcase {
    padding: 1.5rem;
  }

  .album-showcase__artwork {
    max-width: 100%;
  }
  
  .album-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
  
  .album-description {
    font-size: 1rem;
  }
  
  .tracks-container h3 {
    font-size: 1.25rem;
  }

  .footer {
    margin-bottom: 0;
  }

  .footer-container {
    padding: 2.5rem max(5vw, 1.5rem) 1.5rem;
  }

  .footer-main {
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  .volume-control {
    display: none !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .now-playing-bar {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }
  
  .now-playing-extra {
    margin-left: 0.5rem;
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
  }

  .panel,
  .panel__card,
  .track-item,
  .album-showcase__artwork {
    border-radius: 16px;
  }

  .hero {
    padding: 3rem max(5vw, 2.5rem) 4rem;
  }

  main {
    padding: 3rem max(5vw, 2.5rem) 4rem;
    gap: 3rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-container {
    padding: 3rem max(5vw, 2.5rem) 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .footer-meta {
    width: 100%;
  }
}
