* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; color: #fff; min-height: 100vh; background: #08080c; position: relative; overflow-x: hidden; }        
a { text-decoration: none; color: inherit; }

.back-to-top { position: fixed; bottom: 85px; right: 20px; background: rgba(233, 69, 96, 0.4); backdrop-filter: blur(5px); color: #fff; border: 1px solid rgba(233,69,96,0.6); border-radius: 50%; width: 45px; height: 45px; cursor: pointer; z-index: 9998; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; display: flex; align-items: center; justify-content: center; } 
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); } 
.back-to-top:hover { background: rgba(233, 69, 96, 0.8); transform: translateY(-3px) scale(1.05); }
.back-to-top.hide-completely { opacity: 0 !important; visibility: hidden !important; transform: translateY(20px) !important; pointer-events: none; }

.bottom-toolbar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(18,18,28,0.92); backdrop-filter: blur(25px); border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 9999; transition: transform 0.3s; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); }
.bottom-nav-btn { background: none; border: none; color: #bbb; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 600; transition: 0.2s; min-width: 50px; }
.bottom-nav-btn:hover, .bottom-nav-btn.active { color: #e94560; } .bottom-nav-btn svg { width: 22px; height: 22px; }
.bottom-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; color: #444 !important; }

.scroll-control-panel { display: flex; align-items: center; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); border-radius: 30px; padding: 2px 8px; gap: 10px; color: #ddd; font-size: 12px; font-weight: bold; font-variant-numeric: tabular-nums; }
.speed-btn { background: none; border: none; color: #fff; font-size: 18px; font-weight: bold; cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; transition: 0.2s; } .speed-btn:hover { color: #e94560; transform: scale(1.2); }

/* ====================================================
   OTO-OKUMA BUTONU BEYAZ KUTU DÜZELTMESİ
   ==================================================== */
.tool-icon-btn {
    background: transparent !important;
    border: none !important;
    outline: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.tool-icon-btn:hover {
    color: #e94560 !important;
    transform: scale(1.15);
}

.bottom-bars-hidden { transform: translateY(100%) !important; }

.reader-title-section { max-width: 800px; margin: 100px auto 30px; padding: 0 20px; text-align: center; }
.chapter-title-main { font-size: 24px; font-weight: 800; margin-bottom: 8px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }

.reader-container { width: 100%; margin: 0 auto; padding: 0; text-align: center; cursor: pointer; }
.page-wrapper { position: relative; display: block; width: 100%; max-width: 100%; margin: 0 auto; line-height: 0; font-size: 0; }
.ghost-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; background: transparent; -webkit-tap-highlight-color: transparent; pointer-events: auto; }
.manga-page { display: block; margin: 0 auto; padding: 0; max-width: 100%; width: 100%; height: auto; background: #000; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; pointer-events: none; }

/* ====================================================
   YENİ: ZARİF BÖLÜM SEÇİM PANELİ (ORTALANMIŞ MODAL) 
   ==================================================== */
.chapter-modal-overlay { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); 
    z-index: 10001; opacity: 0; visibility: hidden; transition: 0.3s; 
    display: flex; align-items: center; justify-content: center; 
}
.chapter-modal-overlay.active { opacity: 1; visibility: visible; }

.chapter-modal { 
    position: relative;
    width: 90%; 
    max-width: 360px; 
    max-height: 60vh; 
    background: rgba(20, 20, 28, 0.98); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 20px; 
    padding: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.7); 
    display: flex; flex-direction: column; 
    transform: scale(0.9) translateY(20px); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    margin: 0 auto;
}
.chapter-modal-overlay.active .chapter-modal { transform: scale(1) translateY(0); }

/* Modal artık tam ekran altı olmadığı için üstteki sürükleme çizgisine gerek kalmadı */
.drag-handle { display: none !important; }

.modal-search-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none; transition: 0.2s; flex: 1; } 
.modal-search-input:focus { border-color: #e94560; background: rgba(0,0,0,0.3); }
.modal-chapter-list { overflow-y: auto; flex: 1; padding-right: 4px; display: flex; flex-direction: column; gap: 4px; }
.modal-chapter-item { display: block; width: 100%; padding: 14px 16px; border-radius: 12px; color: #ccc; font-size: 14px; font-weight: 500; transition: 0.2s; text-align: left; border: 1px solid transparent; }
.modal-chapter-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.modal-chapter-item.current { background: rgba(233, 69, 96, 0.12); color: #e94560; font-weight: 700; border-color: rgba(233, 69, 96, 0.2); }

.reactions { background: rgba(15, 15, 20, 0.95); padding: 40px 16px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; }
.reactions-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: #fff; text-align: center; }
.reaction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 450px; margin: 0 auto; }
.reaction-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 15px 10px; cursor: pointer; transition: 0.2s; text-align: center; color: #fff; outline: none; } .reaction-btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); } .reaction-btn.active { background: rgba(233,69,96,0.15); border-color: #e94560; } .reaction-emoji { font-size: 26px; margin-bottom: 6px; } .reaction-count { font-size: 13px; font-weight: 600; }

.comments-section { background: rgba(12, 12, 18, 0.98); padding: 40px 16px; border-top: 1px solid rgba(255,255,255,0.05); padding-bottom: 100px; }
.comments-container { max-width: 700px; margin: 0 auto; }
.comments-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.comment-form { display: flex; gap: 15px; margin-bottom: 30px; }
.comment-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.1); pointer-events: none; }
.comment-input-box { flex: 1; }
.comment-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 15px; color: #fff; font-size: 14px; outline: none; resize: vertical; min-height: 80px; margin-bottom: 10px; }
.btn-submit { background: #e94560; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }

.comment-item { display: flex; gap: 15px; background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.03); margin-bottom: 15px; }
.comment-content { flex: 1; } .comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .comment-author { font-weight: 600; color: #e94560; } .comment-date { font-size: 12px; color: #666; } .comment-text { font-size: 14px; color: #ddd; line-height: 1.5; white-space: pre-wrap; }

.comment-actions { display: flex; gap: 15px; margin-top: 10px; align-items: center; }
.comment-action-btn { background: none; border: none; color: #888; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.2s; } .comment-action-btn:hover { color: #fff; } .comment-action-btn.active-like { color: #e94560; }
.btn-delete-comment { background: rgba(255,71,87,0.05); border: none; color: #ff4757; font-size: 11px; cursor: pointer; font-weight: bold; opacity: 0.8; padding: 4px 8px; border-radius: 6px; transition: 0.2s; } .btn-delete-comment:hover { opacity: 1; background: rgba(255,71,87,0.15); }

.spoiler-box { background: rgba(233, 69, 96, 0.05); border: 1px dashed rgba(233, 69, 96, 0.4); border-radius: 8px; padding: 12px; cursor: pointer; position: relative; margin-top: 5px; } .spoiler-content { filter: blur(6px); opacity: 0.3; transition: 0.3s; user-select: none; } .spoiler-box.revealed .spoiler-content { filter: blur(0); opacity: 1; user-select: auto; } .spoiler-warning { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 600; color: #e94560; font-size: 13px; text-align: center; width: 100%; pointer-events: none; } .spoiler-box.revealed .spoiler-warning { opacity: 0; }
.loading { text-align: center; padding: 60px 20px; color: #888; font-size: 16px; }
