:root {
  --gold: #d9b24c;
  --gold-l: #fbe7a1;
  --gold-d: #a37a1c;
  --bg: #000;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--gold-l); overflow: hidden; }
body { font-family: 'Cormorant Garamond', Georgia, serif; }
#wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
#cv { display: block; background: #000; }

button {
  font-family: 'Cinzel', serif; color: var(--gold-l); background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(217, 178, 76, 0.55); border-radius: 3px; padding: 7px 12px; cursor: pointer;
  font-size: 14px; letter-spacing: 0.04em;
}
button:hover { background: rgba(217, 178, 76, 0.18); }
button:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }

/* ---------- menú ---------- */
.panel { position: absolute; inset: 0; overflow-y: auto; background: radial-gradient(ellipse at center, rgba(40, 28, 6, 0.55), rgba(0, 0, 0, 0.92) 70%); }
.panel.hidden { display: none; }
.menu-inner { max-width: 820px; margin: 0 auto; padding: 7vh 20px 60px; text-align: center; }
.kicker { font-style: italic; font-size: 22px; margin: 0; color: var(--gold); }
h1 { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(36px, 7vw, 76px); margin: 6px 0 4px; letter-spacing: 0.08em; color: var(--gold-l); text-shadow: 0 0 24px rgba(217, 178, 76, 0.45); }
.sub { font-size: 24px; margin: 0 0 26px; color: var(--gold); }
button.big { font-size: 20px; padding: 14px 28px; margin-bottom: 26px; }
#epList { list-style: none; padding: 0; margin: 0; text-align: left; border-top: 1px solid rgba(217, 178, 76, 0.35); }
#epList li { border-bottom: 1px solid rgba(217, 178, 76, 0.2); }
#epList button { display: flex; width: 100%; gap: 16px; align-items: baseline; text-align: left; background: transparent; border: 0; padding: 14px 8px; font-size: 18px; }
#epList button:hover { background: rgba(217, 178, 76, 0.1); }
#epList .n { font-family: 'Cinzel', serif; color: var(--gold); min-width: 44px; }
#epList .t { font-family: 'Cinzel', serif; }
#epList .d { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--gold); margin-left: auto; font-size: 17px; white-space: nowrap; }
#epList .s { display: block; font-family: 'Cormorant Garamond', serif; font-size: 17px; color: rgba(251, 231, 161, 0.7); letter-spacing: 0; text-transform: none; }
.fuente { margin-top: 30px; font-size: 16px; color: rgba(251, 231, 161, 0.6); }

/* ---------- controles ---------- */
#controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); transition: opacity 0.4s; }
#controls.hidden { opacity: 0; pointer-events: none; }
#controls .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#controls .spacer { flex: 1; }
#where { font-size: 16px; margin-left: 8px; color: var(--gold); font-style: italic; }
#progress { position: relative; height: 8px; margin-bottom: 10px; background: rgba(217, 178, 76, 0.2); cursor: pointer; border-radius: 4px; }
#progressFill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); border-radius: 4px; }
#marks span { position: absolute; top: -2px; width: 1px; height: 12px; background: rgba(0, 0, 0, 0.7); }
#recBadge { position: absolute; top: 14px; right: 18px; font-family: 'Cinzel', serif; color: #ff5d5d; font-size: 16px; }
#recBadge.hidden { display: none; }
@media (max-width: 700px) { #controls button { padding: 6px 8px; font-size: 12px; } #where { display: none; } }
