/* Book Reader (Book Reader 1.0). */
.ms-reader-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; background: #15151f; color: #fff; position: sticky; top: 0; z-index: 5; }
.ms-reader-bar button { background: rgba(255,255,255,0.1); color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.ms-reader-bar button:hover { background: rgba(255,255,255,0.2); }
.ms-reader-bar input { background: #fff; border: 0; border-radius: 4px; padding: 4px; }
.ms-reader-of { color: rgba(255,255,255,0.6); font-size: 13px; }
.ms-reader-sp { flex: 1; }
.ms-reader-done { background: #5c6ef4 !important; }
.ms-reader-panel { background: #1d1d28; color: #eee; padding: 14px 18px; max-height: 320px; overflow: auto; }
.ms-reader-panel h4 { margin: 8px 0 4px; }
.ms-reader-panel ul { margin: 0 0 10px; list-style: none; padding: 0; }
.ms-reader-panel li { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ms-reader-panel a { color: #b9c0ff; }
.ms-reader-panel button { background: none; border: 0; color: #d66; cursor: pointer; }
.ms-reader__pdf { width: 100%; height: 80vh; border: 0; }
.ms-reader-bar select { background: #fff; border: 0; border-radius: 4px; padding: 4px; }
.ms-reader-cnt { color: rgba(255,255,255,0.7); font-size: 12px; }
.ms-reader-view { background: #2a2a32; display: flex; flex-direction: column; align-items: center; padding: 16px; max-height: 82vh; overflow: auto; }
.ms-reader-canvas { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.5); max-width: 100%; }
.ms-reader-textlayer { position: absolute; opacity: 0.01; line-height: 1; } /* selectable/searchable, visually behind canvas */
.ms-reader-canvaswrap, .ms-reader-view { position: relative; }
.ms-reader-epub { width: 100%; height: 78vh; background: #fff; }

/* Continue Reading rail/grid */
.ms-cr-row { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.ms-cr-row::-webkit-scrollbar { display: none; }
.ms-cr-card { position: relative; flex: 0 0 140px; }
.ms-cr-card__cov { display: block; position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: #1a1a22; }
.ms-cr-card__cov img { width: 100%; height: 100%; object-fit: cover; }
.ms-cr-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#23233a,#15151f); }
.ms-cr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.25); }
.ms-cr-bar span { display: block; height: 100%; background: var(--mst-accent, #5c6ef4); }
.ms-cr-card__x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ms-cr-card:hover .ms-cr-card__x { opacity: 1; }
.ms-cr-card__b { padding: 6px 2px 0; font-size: 0.84rem; }
.ms-cr-card__b a { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.ms-cr-card__b span { color: rgba(128,128,128,0.9); font-size: 0.76rem; }
@media (max-width: 600px) { .ms-cr-card { flex-basis: 38vw; } .ms-cr-card__x { opacity: 1; } }
