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

:root {
  --bg: #0f1115;
  --card: #181b22;
  --accent: #ff5c5c;
  --text: #e8eaed;
  --muted: #9aa0a6;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

header { text-align: center; margin-bottom: 28px; }
h1 { font-size: 2rem; letter-spacing: -0.5px; }
.sub { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

main { width: 100%; max-width: 520px; flex: 1; }

#loadForm { display: flex; gap: 8px; margin-bottom: 16px; }

#urlInput {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2a2f3a;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
}
#urlInput:focus { outline: 2px solid var(--accent); }

#loadBtn, .controls button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
#loadBtn:disabled { opacity: 0.5; cursor: progress; }

.status {
  background: var(--card);
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.status.err { border-color: var(--accent); color: #ffb3b3; }

.player {
  background: var(--card);
  border: 1px solid #2a2f3a;
  border-radius: 16px;
  padding: 20px;
}

.cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}
.meta { margin-bottom: 16px; }
.title { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.author { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.t { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; min-width: 42px; }
.t:last-child { text-align: right; }

#seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #2a2f3a;
  cursor: pointer;
}
#seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
}
#seek::-moz-range-thumb {
  width: 18px; height: 18px; border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.controls button { background: #262b35; }
.controls .play {
  background: var(--accent);
  width: 64px; height: 64px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.hint { color: var(--muted); font-size: 0.82rem; margin-top: 18px; line-height: 1.5; }
footer { color: var(--muted); font-size: 0.78rem; margin-top: 30px; text-align: center; }
