.reader-page {
  padding: 3rem 1.5rem;
}

.reader-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(180deg, #15171a 0%, #0d0e10 100%);
  border: 1px solid #464b52;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 8px 24px rgba(0,0,0,.45);
  overflow: hidden;
}

.reader-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #2a2d32;
  background: rgba(0,0,0,.25);
}

.reader-kicker {
  color: #C6A664;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  margin-bottom: .25rem;
}

.reader-header h1 {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin: 0;
  background: linear-gradient(180deg,#f8f9fa 0%,#c7ccd2 30%,#868b92 70%,#e6eaef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reader-btn {
  background: linear-gradient(180deg, #2b2e33 0%, #1a1c1f 100%);
  border: 1px solid #51565c;
  color: #e2e5ea;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.reader-btn:hover {
  background: linear-gradient(180deg, #383c41 0%, #222428 100%);
  border-color: #7b8087;
  color: #ffffff;
}

.reader-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.reader-page-count {
  color: #cfd3da;
  font-size: .9rem;
  white-space: nowrap;
}

.reader-stage {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 10%, rgba(255,255,255,.04), rgba(0,0,0,0) 70%),
    #090a0c;
}

#pdfCanvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.65);
}

@media (max-width: 790px) {
  .reader-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reader-actions {
    justify-content: flex-start;
  }

  .reader-stage {
    padding: .75rem;
  }
}
.reader-doc-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.reader-doc-select-wrap label {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.75;
}

.reader-doc-select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-weight: 700;
}
.reader-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px; 
  background: #000;
  padding: 4px;
}

.reader-stage canvas {
  background: #fff;
}

@media (max-width: 768px) {
  .reader-header {
    gap: 12px;
  }

  .reader-control-row {
    flex-direction: column;
    align-items: stretch;
  }

  .reader-doc-select-wrap,
  .reader-actions {
    width: 100%;
  }

  .reader-doc-select {
    width: 100%;
  }

  .reader-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .reader-page-count {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }

  .reader-stage {
    justify-content: center;
    overflow-x: auto;
    padding: 8px 0;
    background: transparent;
  }

  .reader-stage canvas {
    max-width: 100%;
    height: auto;
  }

  #pdfCanvasRight {
    display: none !important;
  }
}