.comic-reader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; color: #fff; overflow: hidden; display: flex; flex-direction: column; } .reader-loading, .reader-error { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 1.5rem; padding: 2rem; } .reader-error .error-icon { font-size: 4rem; } .reader-error h2 { margin: 0; font-size: 1.5rem; } .reader-error p { margin: 0; opacity: 0.7; text-align: center; } .reader-error button { margin-top: 1rem; padding: 0.75rem 2rem; background: #667eea; border: none; border-radius: 8px; color: white; font-weight: 600; cursor: pointer; transition: all 0.3s; } .reader-error button:hover { background: #5568d3; transform: translateY(-2px); } .reader-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 100; transition: transform 0.3s; gap: 0.5rem; } .comic-reader.hide-controls .reader-header { position: fixed transform: translateY(-100%); } .back-btn, .menu-btn { padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: white; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; white-space: nowrap; flex-shrink: 0; } .back-btn:active, .menu-btn:active { background: rgba(255, 255, 255, 0.2); } .reader-title { flex: 1; text-align: center; min-width: 0; padding: 0 0.5rem; } .reader-title h1 { margin: 0; font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .page-indicator { font-size: 0.75rem; opacity: 0.7; display: block; margin-top: 0.25rem; } .hamburger-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); z-index: 200; animation: fadeIn 0.2s; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .menu-content { position: absolute; top: 0; right: 0; width: 280px; max-width: 80vw; height: 100%; background: #1a1a1a; padding: 1rem; overflow-y: auto; animation: slideInRight 0.3s; } @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } } .close-menu { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border: none; border-radius: 50%; color: white; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .menu-section { margin: 3rem 0 2rem 0; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .menu-section:first-child { margin-top: 1rem; } .menu-section h3 { margin: 0 0 1rem 0; font-size: 0.85rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; } .menu-section button { display: block; width: 100%; padding: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: white; text-align: left; cursor: pointer; margin-bottom: 0.5rem; transition: all 0.3s; } .menu-section button:active { background: rgba(255, 255, 255, 0.15); } .menu-info { padding: 0.5rem; } .menu-info p { margin: 0.5rem 0; opacity: 0.7; font-size: 0.9rem; } .page-jump-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 1rem; animation: fadeIn 0.2s; } .page-jump-content { background: #1a1a1a; padding: 2rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); width: 100%; max-width: 300px; } .page-jump-content h3 { margin: 0 0 1rem 0; font-size: 1.25rem; } .page-jump-content input { width: 100%; padding: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: white; font-size: 1rem; margin-bottom: 1rem; box-sizing: border-box; } .page-jump-content input:focus { outline: none; border-color: #667eea; } .page-jump-actions { display: flex; gap: 0.5rem; } .page-jump-actions button { flex: 1; padding: 0.75rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s; } .page-jump-actions button:first-child { background: #667eea; color: white; } .page-jump-actions button:first-child:active { background: #5568d3; } .page-jump-actions button:last-child { background: rgba(255, 255, 255, 0.1); color: white; } .page-jump-actions button:last-child:active { background: rgba(255, 255, 255, 0.2); } .reader-content { flex: 1; overflow-y: auto; overflow-x: hidden; background: #000; -webkit-overflow-scrolling: touch; } .scroll-container { display: flex; flex-direction: column; width: 100%; min-height: 100%; } .comic-page { width: 100%; height: auto; display: block; margin: 0; padding: 0; line-height: 0; border: none; vertical-align: top; object-fit: contain; background: #000; } .reader-footer { background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 100; transition: transform 0.3s; } .comic-reader.hide-controls .reader-footer { position: fixed transform: translateY(100%); } .page-controls { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; } .nav-control-btn { padding: 0.5rem 1rem; background: rgba(102, 126, 234, 0.2); border: 1px solid rgba(102, 126, 234, 0.4); border-radius: 8px; color: white; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; white-space: nowrap; flex-shrink: 0; } .nav-control-btn:active:not(:disabled) { background: rgba(102, 126, 234, 0.4); } .nav-control-btn:disabled { opacity: 0.3; cursor: not-allowed; } .page-info { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; } .page-info span { text-align: center; font-size: 0.85rem; opacity: 0.8; } .page-slider { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; outline: none; -webkit-appearance: none; appearance: none; } .page-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: #667eea; border-radius: 50%; cursor: pointer; } .page-slider::-moz-range-thumb { width: 16px; height: 16px; background: #667eea; border: none; border-radius: 50%; cursor: pointer; } .chapter-navigation { display: flex; gap: 0.5rem; padding: 0 1rem 0.75rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 0.75rem; } .chapter-spacer { flex: 1; } .chapter-nav-btn { padding: 0.75rem 1rem; background: rgba(102, 126, 234, 0.15); border: 1px solid rgba(102, 126, 234, 0.3); border-radius: 8px; color: white; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; } .chapter-nav-btn:active { background: rgba(102, 126, 234, 0.3); } .chapter-nav-btn.prev { text-align: left; } .chapter-nav-btn.next { text-align: right; } .spinner { width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (min-width: 768px) { .reader-title h1 { font-size: 1.1rem; } .page-indicator { font-size: 0.85rem; } .back-btn, .menu-btn { padding: 0.5rem 1.5rem; font-size: 1rem; } .scroll-container { max-width: 1200px; margin: 0 auto; } .comic-page { max-width: 100%; } .nav-control-btn, .chapter-nav-btn { font-size: 0.95rem; padding: 0.75rem 1.5rem; } .back-btn:hover, .menu-btn:hover { background: rgba(255, 255, 255, 0.2); } .nav-control-btn:hover:not(:disabled) { background: rgba(102, 126, 234, 0.4); } .chapter-nav-btn:hover { background: rgba(102, 126, 234, 0.3); } .menu-section button:hover { background: rgba(255, 255, 255, 0.15); } } @media (min-width: 1200px) { .comic-page { max-width: 900px; } } .reader-content::-webkit-scrollbar { width: 0; height: 0; } .reader-content { scrollbar-width: none; -ms-overflow-style: none; }