:root {
  --bg: #0f1217;
  --card: #151922;
  --accent: #1db954;
  --accent-soft: #169647;
  --border: #232a3a;
  --text: #f5f7fb;
  --text-soft: #c0c4cf;
  --text-muted: #8b93a5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a2033, #050711 60%);
  color: var(--text);
}

header {
  padding: 12px 10px;
  text-align: center;
  background: linear-gradient(135deg, #1db954, #0b5c2c);
  color: white;
}

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

header p {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

main {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selectors {
  margin-bottom: 4px;
}

.selector-row {
  margin-bottom: 10px;
}

.selector-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-soft);
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #151a23;
  color: var(--text);
  font-size: 0.95rem;
}

.testament-buttons {
  display: flex;
  gap: 8px;
}

.testament-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #151a23;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.testament-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-soft);
  box-shadow: 0 0 14px rgba(29,185,84,0.4);
}

.player {
  margin-top: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

#currentTitle {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 600;
}

audio {
  width: 100%;
  border-radius: 999px;
}

.nav-buttons {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.nav-buttons button {
  flex: 1;
  padding: 10px 6px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

#prevBtn,
#nextBtn {
  background: #222735;
  color: var(--text-soft);
}

#playBookBtn {
  background: var(--accent);
  color: #fff;
}

#playBookBtn.active {
  background: #1fd760;
}

.status {
  margin-top: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1em;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 0 10px 0;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }
}
