:root {
  --bg: #0f1221;
  --fg: #e8eaf6;
  --muted: #a7acc7;
  --accent: #7c9cff;
  --accent-2: #33d2a4;
  --card: #171a2e;
  --active-bg: #1f2a4a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--fg);
  background: radial-gradient(
    80rem 80rem at 10% -20%,
    #1a1f3d 0%,
    #0f1221 50%
  );
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.app {
  width: min(100%, 980px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: clip;
}
header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent-2),
    var(--accent)
  );
  display: grid;
  place-items: center;
  color: #0e1020;
  font-weight: 700;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff10;
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease,
    border-color 0.2s ease;
  font-weight: 600;
}
button:hover {
  background: #ffffff18;
  border-color: rgba(255, 255, 255, 0.2);
}
button:active {
  transform: translateY(1px) scale(0.99);
}
.time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 94px;
  text-align: center;
}
.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 8px;
  background: #ffffff14;
  border-radius: 999px;
  outline: none;
  margin: 0 12px;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #0c0f20;
  cursor: pointer;
  box-shadow: 0 0 0 6px #7c9cff22;
}
.seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #0c0f20;
  cursor: pointer;
  box-shadow: 0 0 0 6px #7c9cff22;
}
.body {
  padding: 16px;
}
.lyrics {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 8px;
  max-height: clamp(340px, 55vh, 680px);
  overflow: auto;
  scroll-behavior: smooth;
}
.line {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
    transform 0.05s ease;
  color: var(--fg);
}
.line:hover {
  background: #ffffff08;
}
.line .ts {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.line .txt {
  white-space: pre-wrap;
}
.line.active {
  background: var(--active-bg);
  outline: 1px solid rgba(124, 156, 255, 0.35);
  box-shadow: 0 8px 24px #00000040 inset, 0 2px 10px #7c9cff22;
}
.line.active .ts {
  color: var(--accent-2);
}
footer {
  padding: 6px 16px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .seek {
    width: 150px;
  }
}

