#appMain {
  height: calc(100vh - 120px);
}

.reader-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  background: #000;
}

body {
  margin: 0;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
}

.app-header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.logo {
  height: 28px;
}

#library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px;
}

.edition-card {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.edition-card img {
  width: 100%;
  display: block;
}

.edition-title {
  padding: 10px;
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #000;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.nav-item {
  background: none;
  border: none;
  color: #aaa;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.nav-item.active {
  color: #fff;
}

/* ---------- Install Panel ---------- */

.install-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.install-card {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 22px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.install-logo {
  height: 28px;
  margin-bottom: 12px;
}

.install-card h2 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.install-card p {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 14px;
}

.install-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #222;
  background: #000;
}

.install-close {
  margin-top: 14px;
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}
