* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", sans-serif;
  background: #121212;
  color: #fff;
  margin: 0;
  padding-bottom: 90px;
}

.login-view[hidden], #main-view[hidden] {
  display: none !important;
}
.login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.login-view .card { text-align: center; }
.login-view a.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #1db954;
  color: #000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1a1a1a;
}
header h1 { font-size: 18px; margin: 0; }
.logout { color: #aaa; text-decoration: none; font-size: 13px; }

.device-bar, .search-bar {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  align-items: center;
}
select, input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: #fff;
}
button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #1db954;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #1ed760; }

#results {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 10px 14px;
  border-radius: 8px;
}
.result-item .meta { font-size: 14px; }
.result-item .meta .sub { color: #888; font-size: 12px; }
.result-item button { padding: 6px 12px; font-size: 13px; }

.now-playing {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2a2a2a;
}
.controls { display: flex; align-items: center; gap: 10px; }
.controls button { background: #2a2a2a; color: #fff; font-size: 18px; padding: 8px 14px; }
#volume-slider { width: 120px; }
