/* vs.noema.tv — voice shadowing */

:root{
  --bg:#0F0F0F;
  --surface:#161616;
  --surface-2:#1D1D1D;
  --border:#272727;
  --text:#EDE8E0;
  --muted:#8A8580;
  --accent:#8ED8D1;
  --error:#EF4444;
  --player-h:132px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
a{color:inherit; text-decoration:none}
button{font:inherit; cursor:pointer}

/* ── Cabecera ───────────────────────────────────────────── */
.top{
  position:sticky; top:0; z-index:20;
  background:rgba(15,15,15,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.top-in{
  max-width:40rem; margin:0 auto; height:54px; padding:0 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.top-brand{display:flex; align-items:center; gap:9px}
.top-brand svg{width:20px; height:auto}
.top-brand span{font-weight:700; letter-spacing:.2em; font-size:12px}
.top-back{color:var(--muted); font-size:14px; flex:0 0 auto}
.top-title{
  font-size:13.5px; font-weight:600; color:var(--muted);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; flex:1;
}
.top-out{
  background:none; border:0; color:var(--muted); font-size:13px; padding:6px 2px;
}
.top-out.is-on{color:var(--accent)}

.wrap{max-width:40rem; margin:0 auto; padding:22px 16px 40px}

/* ── Listado ────────────────────────────────────────────── */
.cards{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.card{
  display:block; background:var(--surface); border:1px solid var(--border);
  border-radius:12px; padding:16px 18px; transition:border-color .15s, transform .12s;
}
.card:active{transform:scale(.99)}
.card:hover{border-color:var(--accent)}
.card-top{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.pill{
  font-size:10.5px; font-weight:700; letter-spacing:.09em;
  color:var(--accent); background:rgba(142,216,209,.12);
  border-radius:4px; padding:3px 7px;
}
.card h2{font-size:17px; font-weight:600; margin:0 0 3px; letter-spacing:-.01em}
.meta{color:var(--muted); font-size:12.5px; margin:0}

.empty{text-align:center; padding:70px 20px; color:var(--muted)}
.empty p{margin:0 0 6px}
.empty small{opacity:.75; font-size:13px}

/* ── Lector ─────────────────────────────────────────────── */
body.reading{padding-bottom:var(--player-h)}
.reader{padding-top:26px}
.hint{
  text-align:center; color:var(--muted); font-size:12.5px;
  margin:0 0 22px; opacity:.8;
}
.text{
  font-size:21px; line-height:1.85; letter-spacing:.002em;
  transition:opacity .2s;
}
.text--trad{
  margin-top:28px; padding:18px 20px; border:0;
  background:var(--surface); border-radius:12px;
  font-size:18px; line-height:1.75; color:#C7BFB2;
}
.text--trad::before{
  content:"Español"; display:block;
  font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin-bottom:10px;
}

.notes{
  margin-top:34px; border-top:1px solid var(--border); padding-top:16px;
  font-size:14.5px; color:var(--muted); line-height:1.7;
}
.notes summary{
  cursor:pointer; color:var(--accent); font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:12px;
}

/* ── Reproductor ────────────────────────────────────────── */
.player{
  position:fixed; left:0; right:0; bottom:0; z-index:30;
  background:rgba(22,22,22,.97); backdrop-filter:blur(12px);
  border-top:1px solid var(--border);
  padding:12px 16px calc(14px + env(safe-area-inset-bottom));
}
.bar{
  max-width:40rem; margin:0 auto; height:20px; display:flex; align-items:center; cursor:pointer;
}
.bar::before{
  content:""; position:absolute; left:16px; right:16px; height:3px;
  background:var(--border); border-radius:2px;
}
.bar-fill{
  position:relative; height:3px; background:var(--accent); border-radius:2px; width:0;
  transition:width .1s linear;
}
.times{
  max-width:40rem; margin:0 auto 6px; display:flex; justify-content:space-between;
  font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums;
}
.controls{
  max-width:40rem; margin:0 auto;
  display:flex; align-items:center; justify-content:center; gap:14px;
}
.controls button{
  background:none; border:0; color:var(--text); padding:8px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:9px; transition:background .15s, transform .1s; position:relative;
}
.controls button:active{transform:scale(.92)}
.controls button:hover{background:var(--surface-2)}
.controls svg{width:22px; height:22px; display:block}
.controls .lbl{
  position:absolute; bottom:2px; right:4px;
  font-size:8.5px; font-weight:700; color:var(--muted);
}
.controls .main{
  background:var(--accent); color:#0F0F0F; width:54px; height:54px; border-radius:50%;
}
.controls .main:hover{background:var(--accent); filter:brightness(1.06)}
.controls .main svg{width:26px; height:26px}
.controls .speed{
  font-size:13px; font-weight:700; color:var(--accent);
  min-width:48px; font-variant-numeric:tabular-nums;
}

/* ── Login ──────────────────────────────────────────────── */
.login-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px}
.login{width:100%; max-width:340px}
.login-brand{display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:28px}
.login-brand svg{width:48px; height:auto}
.login-brand span{font-weight:700; letter-spacing:.26em; font-size:12px}
.login form{
  background:var(--surface); border:1px solid var(--border);
  border-radius:12px; padding:22px; display:flex; flex-direction:column; gap:14px;
}
label{
  display:block; font-size:11px; text-transform:uppercase; letter-spacing:.11em;
  color:var(--muted); font-weight:600; margin-bottom:6px;
}
input[type=email],input[type=password]{
  width:100%; font:inherit; font-size:16px;
  background:var(--surface-2); color:var(--text);
  border:1px solid var(--border); border-radius:8px; padding:11px 12px;
}
input:focus{outline:0; border-color:var(--accent)}
.btn{
  background:var(--accent); color:#0F0F0F; border:0; font-weight:700; font-size:15px;
  border-radius:8px; padding:12px; width:100%;
}
.banner{border-radius:8px; padding:10px 14px; margin-bottom:14px; font-size:13.5px}
.banner--error{background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.3); color:var(--error)}

@media (max-width:480px){
  .text{font-size:19.5px; line-height:1.8}
}

/* ── Glosario ───────────────────────────────────────────── */
.term{
  border-bottom:1px dashed rgba(142,216,209,.55);
  cursor:pointer; transition:background .15s, border-color .15s;
  border-radius:2px;
}
.term:active,.term.is-on{
  background:rgba(142,216,209,.18); border-bottom-color:var(--accent);
}
.term-demo{border-bottom:1px dashed rgba(142,216,209,.55); color:var(--text)}

.sheet{
  position:fixed; left:0; right:0; bottom:var(--player-h); z-index:40;
  background:var(--surface); border-top:1px solid var(--accent);
  padding:16px 18px 18px; box-shadow:0 -10px 30px rgba(0,0,0,.45);
  animation:sheetIn .16s ease-out;
}
@keyframes sheetIn{from{transform:translateY(12px); opacity:0} to{transform:none; opacity:1}}
.sheet-x{
  position:absolute; top:8px; right:10px;
  background:none; border:0; color:var(--muted); font-size:24px; line-height:1;
  padding:4px 8px; cursor:pointer;
}
.sheet-term{
  max-width:40rem; margin:0 auto 5px; font-size:16px; font-weight:700; color:var(--accent);
}
.sheet-def{
  max-width:40rem; margin:0 auto; font-size:15px; line-height:1.6; color:var(--text);
}
