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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000000;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(60, 60, 60, 0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 100% 100%, rgba(40, 40, 40, 0.3) 0%, transparent 50%),
              radial-gradient(ellipse at 0% 100%, rgba(50, 50, 50, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  opacity: 0.9;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.search-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  pointer-events: none;
}

input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #111111;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

input::placeholder {
  color: #555;
}

input:focus {
  outline: none;
  border-color: #444;
  background: #141414;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: #2a2a2a;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: #3a3a3a;
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  background: #222;
  transform: translateY(0);
}

button:disabled {
  background: #1a1a1a;
  color: #444;
  cursor: not-allowed;
}

button svg {
  transition: transform 0.2s ease;
}

button:hover:not(:disabled) svg {
  transform: translateX(3px);
}

#results {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.album-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.album-card:hover {
  background: #111;
  border-color: #2a2a2a;
}

.album-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.album-info {
  flex: 1;
  min-width: 0;
}

.album-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-artist {
  font-size: 0.8rem;
  color: #555;
}

.album-id {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #1a1a1a;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #252525;
}

.album-id:hover {
  background: #222;
  color: #aaa;
  border-color: #333;
}

.album-id.copied {
  background: #1a1a1a;
  color: #4ade80;
  border-color: #2a2a2a;
}

.album-id svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #555;
  font-size: 0.9rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #222;
  border-top-color: #555;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  text-align: center;
  padding: 1rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.no-results {
  text-align: center;
  color: #555;
  padding: 3rem 1rem;
}

.no-results svg {
  width: 40px;
  height: 40px;
  color: #333;
  margin-bottom: 0.75rem;
}

.no-results p {
  font-size: 0.9rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.25rem 0 0.5rem;
}

.artist-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.artist-card:hover {
  background: #111;
  border-color: #2a2a2a;
}

.artist-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.artist-card .artist-info {
  flex: 1;
  min-width: 0;
}

.artist-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.artist-meta {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.15rem;
}

.artist-card svg {
  color: #555;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.artist-card:hover svg {
  transform: translateX(3px);
  color: #888;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .search-box {
    flex-direction: column;
  }

  button {
    justify-content: center;
  }

  .album-card {
    flex-wrap: wrap;
  }

  .album-id {
    width: 100%;
    justify-content: center;
    padding: 0.7rem;
  }
}