:root {
  --bg: #12121a;
  --panel: #1c1c28;
  --panel-2: #232333;
  --text: #f2f2f5;
  --text-dim: #9797a8;
  --accent: #7c6cf0;
  --accent-2: #4fd0c4;
  --border: #2e2e40;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app__header h1 {
  font-size: 1.4rem;
  margin: 0;
}

.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon--hidden {
  display: none !important;
}

.icon--small {
  width: 16px;
  height: 16px;
}

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

.btn--toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.now-playing {
  display: flex;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.cover {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover__note { font-size: 2.4rem; color: rgba(255,255,255,0.85); }

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-playing__info { flex: 1; min-width: 0; }

.track-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  margin: 2px 0 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress {
  height: 6px;
  background: var(--panel-2);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}

.btn--icon .icon {
  width: 20px;
  height: 20px;
}

.btn--play {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-color: var(--accent);
}

.btn--play .icon {
  width: 22px;
  height: 22px;
}

.volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.volume input[type="range"] {
  width: 80px;
}

.lyrics {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  max-height: 260px;
  overflow-y: auto;
}

.lyrics__placeholder {
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}

.lyrics__lines p {
  margin: 0 0 10px;
  color: var(--text-dim);
  line-height: 1.7;
  transition: color 0.2s ease;
}

.lyrics__lines p.active {
  color: var(--text);
  font-weight: 600;
}

.playlist {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.playlist h2 {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 8px 12px;
}

.playlist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.playlist li:hover { background: var(--panel-2); }

.playlist li.active {
  background: var(--panel-2);
  color: var(--accent-2);
}

.playlist li .pl-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist li .pl-artist {
  color: var(--text-dim);
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  margin-top: 60px;
}

.empty-state code {
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 4px;
}
