:root {
  --bg: #0b0f17;
  --panel: #121826;
  --accent: #cfae56; /* dorado cálido */
  --text: #e7e7ea;
  --muted: #9aa0a6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.topbar, .bottombar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--panel);
  position: sticky;
  z-index: 10;
}

.topbar { top: 0; border-bottom: 1px solid #1f2535; }
.bottombar { bottom: 0; border-top: 1px solid #1f2535; }

.brand {
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent);
}

.controls select {
  background: #0d1424;
  color: var(--text);
  border: 1px solid #24324d;
  padding: 8px;
  border-radius: 6px;
  min-width: 180px;
}

#viewerContainer {
  height: calc(100vh - 110px);
  padding: 8px;
}

#viewer {
  height: 100%;
  width: 100%;
  background: #0d1424;
  border: 1px solid #1f2535;
  border-radius: 8px;
  overflow: hidden;
}

.bottombar button {
  background: #0d1424;
  color: var(--text);
  border: 1px solid #24324d;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#progressWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

#progress {
  width: 55%;
  accent-color: var(--accent);
}

@media (max-width: 640px) {
  .controls select { min-width: 140px; }
  #progress { width: 50%; }
}
