#book-details-view { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 4rem; max-width: 1400px; margin: 0 auto; width: 100%; } .book-top-nav { display: flex; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } .back-btn-large { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: 0.2s; padding: 0.5rem 1rem; border-radius: var(--radius-md); } .back-btn-large:hover { color: var(--text-primary); background: var(--bg-surface-hover); } @media (max-width: 767px) { .back-btn-large { font-size: 0.95rem; gap: 0.5rem; padding: 0.4rem 0.8rem; } } .book-layout-grid { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; } @media (max-width: 1024px) { .book-layout-grid { grid-template-columns: 250px 1fr; gap: 2rem; } } @media (max-width: 767px) { .book-layout-grid { grid-template-columns: 1fr; gap: 1.5rem; } } .book-left-col { display: flex; flex-direction: column; gap: 1.5rem; } @media (min-width: 768px) { .book-left-col { position: sticky; top: 20px; } } @media (max-width: 767px) { .book-left-col { flex-direction: row; align-items: flex-start; gap: 1rem; } } .book-poster-large { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--border); background: #111; } @media (max-width: 767px) { .book-poster-large { width: 120px; flex-shrink: 0; } } .book-title-sidebar { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--text-primary); text-align: center; word-wrap: break-word; } @media (max-width: 767px) { .book-title-sidebar { font-size: 1.2rem; text-align: left; } } .book-chapters-column { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; } .chapter-table-container { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; } .chapter-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; } .chapter-row:last-child { border-bottom: none; } .chapter-row:hover { background: var(--bg-surface-hover); } @media (max-width: 767px) { .chapter-row { padding: 0.75rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.25rem; } } .chapter-main-text { font-weight: 600; font-size: 1rem; color: var(--text-primary); } .chapter-sub-text { font-size: 0.9rem; color: var(--text-tertiary); } @media (max-width: 767px) { .chapter-main-text { font-size: 0.9rem; } .chapter-sub-text { font-size: 0.8rem; } } .pagination-bar { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; flex-wrap: wrap; } .page-btn { background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary); padding: 0.5rem 1.5rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 500; transition: 0.2s; } .page-btn:hover:not(:disabled) { background: var(--bg-surface-hover); border-color: var(--accent); } .page-btn:disabled { opacity: 0.4; cursor: not-allowed; } @media (max-width: 767px) { .page-btn { padding: 0.4rem 1rem; font-size: 0.9rem; } } #reader-view { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 200; background: #0d0d0d; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding-top: 60px; } .reader-page-img { max-width: 100%; width: auto; display: block; margin-bottom: 0; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); } .reader-text-content { max-width: 900px; width: 95%; color: #e4e4e7; font-size: 1.1rem; line-height: 1.8; padding: 2rem; background: #18181b; margin-bottom: 4rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); } .reader-text-content p { margin-bottom: 1.5rem; } @media (max-width: 767px) { .reader-text-content { font-size: 1rem; line-height: 1.7; padding: 1.5rem; width: 100%; border-radius: 0; } } .reader-close-btn { position: fixed; top: 20px; left: 20px; z-index: 210; background: rgba(0, 0, 0, 0.8); color: white; border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 20px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; backdrop-filter: blur(4px); } .reader-close-btn:hover { background: var(--accent); border-color: var(--accent); } @media (max-width: 767px) { .reader-close-btn { top: 10px; left: 10px; padding: 8px 16px; font-size: 0.9rem; } } .loading-state { text-align: center; padding: 4rem; color: var(--text-tertiary); } @media (max-width: 767px) { .loading-state { padding: 2rem 1rem; } } .book-read-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; color: white; z-index: 10; } .image-entry[data-type="book"]:hover .book-read-overlay { opacity: 1; } .book-read-overlay span { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); } .book-read-overlay svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); color: var(--accent); } .image-entry[data-type="book"]::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: inherit; pointer-events: none; } .gallery-masonry .image-entry[data-type="book"] { grid-row-end: span 1 !important; aspect-ratio: 2 / 3 !important; position: relative !important; contain: layout style !important; } .gallery-masonry .image-entry[data-type="book"]::before { content: ""; display: block; padding-top: 150% !important; } .gallery-masonry .image-entry[data-type="book"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; } .gallery-masonry:has(.image-entry[data-type="book"]) { grid-auto-rows: 1fr !important; } .gallery-masonry.books-only .image-entry[data-type="book"], .gallery-masonry .image-entry[data-type="book"] { aspect-ratio: 2 / 3; height: auto; grid-row-end: span 1 !important; contain: layout style; background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; transition: transform 0.2s; } .gallery-masonry .image-entry[data-type="book"]::before { content: ""; display: block; padding-top: 150%; } .gallery-masonry .image-entry[data-type="book"] img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: all 0.3s ease; } .gallery-masonry .image-entry[data-type="book"] img:not(.loaded) { background: linear-gradient(90deg, #18181b 0%, #27272a 50%, #18181b 100%); background-size: 200% 100%; animation: shimmer 1.8s infinite; opacity: 1; } .gallery-masonry .image-entry[data-type="book"]:hover img { filter: brightness(0.7) blur(2px); transform: scale(1.08); } .gallery-masonry .image-entry[data-type="book"]:hover .book-read-overlay { opacity: 1; }