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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.5rem;
  color: #e94560;
  margin-bottom: 4px;
}

header {
  margin-bottom: 16px;
}

header .nickname {
  font-size: 0.9rem;
  opacity: 0.7;
}

nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

nav a {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #16213e;
  color: #eee;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a.active {
  background: #e94560;
}

/* Forms */
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #16213e;
  border-radius: 8px;
  background: #0f3460;
  color: #eee;
  outline: none;
  min-height: 44px;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: #e94560;
}

button, .btn-add {
  padding: 12px 24px;
  font-size: 1rem;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  font-weight: 600;
}

button:active { opacity: 0.8; }

form button {
  width: 100%;
  margin-top: 12px;
}

/* Search */
.search-section { margin-top: 8px; }

#search-input { margin-bottom: 16px; }

/* Song cards */
.song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #16213e;
  border-radius: 8px;
  margin-bottom: 8px;
}

.song-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.song-title {
  font-size: 0.9rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 4px;
}

.btn-add {
  font-size: 1.5rem;
  padding: 8px 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.queue-position {
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.5;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Now playing */
.now-playing-card {
  background: linear-gradient(135deg, #e94560, #0f3460);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.now-playing-label {
  width: 100%;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.now-playing-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: opacity 0.3s;
  z-index: 100;
}

.toast.error { background: #e94560; }
.toast.hidden { opacity: 0; pointer-events: none; }

.empty { text-align: center; opacity: 0.5; padding: 32px 0; }
.error { color: #e94560; margin-bottom: 12px; }

p { margin-bottom: 12px; }
