:root {
  color-scheme: dark;
  --fundo: #14161a;
  --superficie: #1e2127;
  --texto: #f0f1f3;
  --texto-fraco: #9aa0ab;
  --destaque: #6ea8fe;
  --erro: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}

#app { max-width: 480px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { margin: 0; font-size: 1.2rem; }
p { margin: 0.2rem 0; color: var(--texto-fraco); }

form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 320px; margin: 2rem auto; }

input, select, button {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #333844;
  background: var(--superficie);
  color: var(--texto);
}

button {
  cursor: pointer;
  background: var(--destaque);
  color: #0b1220;
  font-weight: 600;
  border: none;
}

.botao {
  display: inline-block;
  cursor: pointer;
  background: var(--destaque);
  color: #0b1220;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
}

.botao-icone {
  background: transparent;
  color: var(--texto);
  font-size: 1.5rem;
  padding: 0.3rem 0.6rem;
}

header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

.erro { color: var(--erro); }
.status { font-size: 0.85rem; }

#lista-livros { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.item-livro {
  background: var(--superficie);
  border-radius: 0.8rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.item-livro .info strong { display: block; }
.item-livro .remover { background: transparent; color: var(--texto-fraco); font-size: 0.85rem; padding: 0.3rem 0.5rem; }

.controles-principais {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0 1.5rem;
}

.controles-principais button {
  font-size: 1.8rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  padding: 0;
}

#btn-play { width: 5rem; height: 5rem; font-size: 2.2rem; }

.linha-config { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.linha-config label { align-self: center; color: var(--texto-fraco); font-size: 0.85rem; }

audio { display: none; }
