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

body {
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-weight: 400;
  background: linear-gradient(to bottom, #0a0a0a, #1a0a2e);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 448px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.loading {
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
}

.loading-bar {
  height: 4px;
  width: 100%;
  border-radius: 9999px;
  background: #262626;
  overflow: hidden;
}

.loading-progress {
  height: 4px;
  width: 100%;
  background: white;
  animation: loading 1.5s linear infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid;
}

.status-online {
  border-color: #22c55e;
}
.status-idle {
  border-color: #eab308;
}
.status-dnd {
  border-color: #ef4444;
}
.status-offline {
  border-color: #737373;
}

h1 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.subtitle {
  color: #a3a3a3;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.social-links a {
  color: #737373;
  transition: color 0.3s;
  font-size: 24px;
  text-decoration: none;
}

.social-links a:hover {
  color: #a855f7;
}

.spotify-card {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: rgba(23, 23, 23, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.spotify-header {
  font-size: 0.75rem;
  color: #d4d4d4;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.spotify-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.album-art {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.track-info {
  text-align: left;
  flex-grow: 1;
  overflow: hidden;
}

.track-name {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-bar {
  margin-top: 16px;
}

.progress-track {
  height: 4px;
  background: #374151;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 8px;
  background: #a855f7;
  border-radius: 9999px;
  transition: width 1s linear;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 0.75rem;
  margin-top: 4px;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .container {
    max-width: 384px;
    padding: 16px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 1rem;
  }
}
