 /* Reader Specific Styles */
        html:has(body.reader-body),
        html,
        body.reader-body {
            scroll-behavior: auto !important;
        }

        body.reader-body {
            background: #000;
            min-height: 100vh;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        body.reader-body.autoscrolling {
            touch-action: pan-y;
        }

        body.reader-body.autoscrolling #reader-content {
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
        }

        body.reader-body img {
            -webkit-user-drag: none;
            -khtml-user-drag: none;
            -moz-user-drag: none;
            -o-user-drag: none;
            user-drag: none;
            pointer-events: none;
        }

        body.reader-body .image-skeleton-wrapper.error img {
            display: none;
        }

        /* Loading Styles */
        .reader-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            color: #888;
            gap: 24px;
        }

        .reader-loading p {
            font-size: 0.9rem;
            margin: 0;
        }

        /* Box Loader Animation */
        .box-loader {
            width: 80px;
            height: 80px;
            position: relative;
        }

        .box-loader .box1,
        .box-loader .box2,
        .box-loader .box3 {
            border: 12px solid var(--accent-primary);
            box-sizing: border-box;
            position: absolute;
            display: block;
        }

        .box-loader .box1 {
            width: 80px;
            height: 34px;
            margin-top: 46px;
            margin-left: 0px;
            animation: anime1 4s 0s forwards ease-in-out infinite;
        }

        .box-loader .box2 {
            width: 34px;
            height: 34px;
            margin-top: 0px;
            margin-left: 0px;
            animation: anime2 4s 0s forwards ease-in-out infinite;
        }

        .box-loader .box3 {
            width: 34px;
            height: 34px;
            margin-top: 0px;
            margin-left: 46px;
            animation: anime3 4s 0s forwards ease-in-out infinite;
        }

        @keyframes anime1 {
            0% {
                width: 80px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }

            12.5% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }

            25% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }

            37.5% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }

            50% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }

            62.5% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }

            75% {
                width: 34px;
                height: 80px;
                margin-top: 0px;
                margin-left: 0px;
            }

            87.5% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }

            100% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }
        }

        @keyframes anime2 {
            0% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }

            12.5% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }

            25% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }

            37.5% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }

            50% {
                width: 80px;
                height: 34px;
                margin-top: 0px;
                margin-left: 0px;
            }

            62.5% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 46px;
            }

            75% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 46px;
            }

            87.5% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 46px;
            }

            100% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 46px;
            }
        }

        @keyframes anime3 {
            0% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 46px;
            }

            12.5% {
                width: 34px;
                height: 34px;
                margin-top: 0px;
                margin-left: 46px;
            }

            25% {
                width: 34px;
                height: 80px;
                margin-top: 0px;
                margin-left: 46px;
            }

            37.5% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 46px;
            }

            50% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 46px;
            }

            62.5% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 46px;
            }

            75% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 46px;
            }

            87.5% {
                width: 34px;
                height: 34px;
                margin-top: 46px;
                margin-left: 46px;
            }

            100% {
                width: 80px;
                height: 34px;
                margin-top: 46px;
                margin-left: 0px;
            }
        }

        /* Reader Error Styles */
        .reader-error {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            color: #888;
        }

        /* Skeleton Loading for Images */
        .image-skeleton-wrapper {
            position: relative;
            width: 100%;
            min-height: 300px;
            background: #1a1a1a;
        }

        .image-skeleton {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite ease-in-out;
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        .image-skeleton-wrapper.loaded .image-skeleton,
        .image-skeleton-wrapper.error .image-skeleton {
            display: none;
        }

        .image-skeleton-wrapper.loaded {
            min-height: auto;
        }

        .image-skeleton-wrapper.error {
            min-height: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            pointer-events: auto;
            gap: 8px;
            border: 1px dashed #333;
            border-radius: 8px;
            margin: 4px 0;
            transition: background 0.2s;
        }

        .image-skeleton-wrapper.error:hover {
            background: #1e1e1e;
        }

        .image-skeleton-wrapper.error::before {
            content: '\21BB';
            font-size: 2rem;
            color: #666;
            display: block;
        }

        .image-skeleton-wrapper.error::after {
            content: 'Failed to load image \u2014 Tap to reload';
            color: #666;
            font-size: 0.85rem;
            text-align: center;
            padding: 0 16px;
        }

        .image-skeleton-wrapper.error.reloading {
            pointer-events: none;
            cursor: wait;
        }

        .image-skeleton-wrapper.error.reloading::before {
            content: '';
            width: 24px;
            height: 24px;
            border: 3px solid #333;
            border-top-color: var(--accent-primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .image-skeleton-wrapper.error.reloading::after {
            content: 'Reloading...';
        }

        .reader-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transform: translateY(0);
            transition: transform 0.5s ease-out;
            will-change: transform;
        }

        .reader-header.hidden {
            transform: translateY(-100%);
            pointer-events: none;
            display: flex !important;
        }

        .reader-title {
            flex: 1;
            text-align: left;
            min-width: 0;
            margin: 0 10px;
            overflow: hidden;
        }

        .reader-title h1 {
            font-size: 0.9rem;
            font-weight: 600;
            color: #fff;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .reader-title p {
            font-size: 0.75rem;
            color: #fff;
            margin: 2px 0 0;
        }

        .reader-btn {
            background: transparent;
            border: none;
            color: #fff;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: background 0.2s;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .reader-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .reader-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        /* Reader Content */
        .reader-content {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 0;
        }

        .reader-content.single-mode {
            justify-content: center;
            padding: 60px 0;
        }

        /* Image Container */
        .reader-images {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
        }

        .reader-images.single-mode {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 120px);
        }

        .reader-image {
            width: 100%;
            display: block;
            margin: 0 auto;
        }

        .reader-images.single-mode .reader-image {
            display: none;
            max-height: calc(100vh - 100px);
            width: auto;
            max-width: 100%;
            object-fit: contain;
            touch-action: none;
            /* Enable custom touch handling */
            user-select: none;
            -webkit-user-select: none;
        }

        .reader-images.single-mode .reader-image.active {
            display: block;
        }

        /* Single mode: Hide skeleton wrappers for non-active images */
        .reader-images.single-mode .image-skeleton-wrapper {
            display: none;
            width: auto;
            min-height: auto;
            background: transparent;
        }

        .reader-images.single-mode .image-skeleton-wrapper:has(.reader-image.active) {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Old navigation styles removed - using new layout below */

        /* Mode Toggle */
        .mode-toggle {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 8px 12px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .mode-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Reader Controls */
        .reader-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .control-btn {
            padding: 8px 10px;
            border-radius: 50%;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .control-btn i {
            font-size: 1.1rem;
        }

        .control-btn.playing {
            background: var(--accent-primary);
        }

        /* Settings Dropdown & Unified Menu */
        .settings-dropdown {
            position: relative;
        }

        .settings-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: rgba(26, 26, 26, 0.98);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            padding: 14px 16px;
            min-width: 250px;
            max-width: 320px;
            display: none;
            z-index: 200;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
        }

        .settings-menu.show {
            display: block;
        }

        .settings-section {
            padding-bottom: 12px;
            margin-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .settings-section:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
            border-bottom: none;
        }

        .settings-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.8rem;
            font-weight: 600;
            color: #bbb;
            margin-bottom: 8px;
            gap: 6px;
        }

        .settings-label i {
            font-size: 0.95rem;
            color: var(--accent-primary, #f00a35);
        }

        .settings-options-group {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .settings-option-btn {
            flex: 1 1 auto;
            min-width: calc(25% - 6px);
            padding: 6px 10px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #ccc;
            font-size: 0.78rem;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .settings-option-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
        }

        .settings-option-btn.active {
            background: var(--accent-primary, #f00a35);
            border-color: var(--accent-primary, #f00a35);
            color: #fff;
            font-weight: 600;
            box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-primary, #f00a35) 40%, transparent);
        }

        .brightness-value {
            font-family: monospace;
            color: #fff;
            font-weight: 600;
        }

        .brightness-slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.15);
            -webkit-appearance: none;
            appearance: none;
            outline: none;
            margin-top: 4px;
            margin-bottom: 8px;
        }

        .brightness-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .brightness-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            cursor: pointer;
            border: none;
        }

        .brightness-reset {
            display: block;
            width: 100%;
            padding: 6px 8px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            color: #999;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .brightness-reset:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.25);
        }

        /* Brightness overlay - dims the screen without altering images */
        #reader-brightness-overlay {
            position: fixed;
            inset: -50vh 0;
            background: #000;
            opacity: 0;
            pointer-events: none;
            z-index: 150;
            transition: opacity 0.15s ease;
        }

        /* PC only class - hidden on mobile */
        .pc-only {
            display: block;
        }

        /* Bottom Navigation - New Layout */
        .reader-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
            padding: 20px 20px 16px 20px;
            transform: translateY(0);
            transition: transform 0.5s ease-out;
            will-change: transform;
        }

        .reader-nav.hidden {
            transform: translateY(100%);
            pointer-events: none;
            display: flex !important;
        }

        .nav-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            border: none;
            color: #fff;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
            flex: 1;
            justify-content: center;
        }

        .nav-prev {
            justify-content: flex-start;
        }

        .nav-next {
            justify-content: flex-end;
        }

        .nav-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .nav-btn i {
            font-size: 1.2rem;
        }

        .nav-menu {
            flex: 0 0 auto;
            padding: 12px 24px;
        }

        .nav-menu i {
            font-size: 1.4rem;
        }

        .nav-menu:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        /* Page Indicator Float */
        .page-indicator-float {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            z-index: 99;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .page-indicator-float.visible {
            opacity: 1;
        }

        /* Chapter Modal */
        .chapter-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 300;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .chapter-modal.show {
            display: flex;
        }

        .chapter-modal-content {
            width: 100%;
            max-width: 520px;
            max-height: 80vh;
            background: #181818;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
            animation: modalFadeIn 0.2s ease-out;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .chapter-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
        }

        .chapter-modal-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chapter-modal-header h3 {
            color: #fff;
            font-size: 0.95rem;
            font-weight: 700;
            margin: 0;
        }

        .modal-sort-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ccc;
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-sort-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.25);
        }

        .close-modal-btn {
            background: transparent;
            border: none;
            color: #888;
            font-size: 1.4rem;
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
        }

        .close-modal-btn:hover {
            color: #fff;
        }

        .chapter-modal-search {
            padding: 10px 18px;
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }

        .chapter-modal-search i.ri-search-line {
            color: #888;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .chapter-modal-search-input {
            flex: 1;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            padding: 8px 12px;
            color: #fff;
            font-size: 0.85rem;
            outline: none;
            transition: all 0.2s ease;
        }

        .chapter-modal-search-input:focus {
            border-color: var(--accent-primary, #f00a35);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-primary, #f00a35) 25%, transparent);
        }

        .chapter-modal-search-input::placeholder {
            color: #777;
        }

        .modal-search-clear-btn {
            background: transparent;
            border: none;
            color: #888;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            transition: color 0.2s;
        }

        .modal-search-clear-btn:hover {
            color: #fff;
        }

        .chapter-modal-no-results {
            text-align: center;
            color: #888;
            padding: 36px 20px;
            font-size: 0.85rem;
        }

        .chapter-list-container {
            flex: 1;
            overflow-y: auto;
            padding: 0;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .chapter-list-container::-webkit-scrollbar {
            width: 6px;
        }

        .chapter-list-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .chapter-list-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .chapter-list-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.35);
        }

        .chapter-list-container p {
            text-align: center;
            color: #888;
            padding: 20px;
        }

        .chapter-modal-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            color: #ccc;
            text-decoration: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            transition: all 0.15s ease;
            font-size: 0.88rem;
        }

        .chapter-modal-item:last-child,
        .chapter-modal-item:last-of-type {
            border-bottom: none;
        }

        .chapter-modal-item:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            padding-left: 24px;
        }

        .chapter-modal-item.current {
            background: color-mix(in srgb, var(--accent-primary) 18%, transparent);
            color: var(--accent-primary);
            font-weight: 600;
            border-left: 3px solid var(--accent-primary);
        }

        /* Loading & Error */
        .reader-loading {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #fff;
        }

        .reader-error {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #ff6b6b;
            text-align: center;
            padding: 20px;
        }

        /* Finished Reading Modal */
        .finished-modal {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 200;
            background: linear-gradient(to top, rgba(15, 15, 15, 0.98) 0%, rgba(15, 15, 15, 0.95) 100%);
            border-top: 1px solid color-mix(in srgb, var(--accent-primary) 30%, transparent);
            padding: 24px 20px 32px;
            transform: translateY(100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
            backdrop-filter: blur(10px);
        }

        .finished-modal-close {
            position: absolute;
            top: 14px;
            right: 16px;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            color: #aaa;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 1;
        }

        .finished-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        .finished-modal.show {
            transform: translateY(0);
        }

        .finished-modal-content {
            max-width: 400px;
            margin: 0 auto;
            text-align: center;
        }

        .finished-modal-icon {
            font-size: 3rem;
            color: var(--accent-primary);
            margin-bottom: 12px;
        }

        .finished-modal-title {
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 8px;
        }

        .finished-modal-comic {
            font-size: 1.1rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .finished-modal-chapter {
            font-size: 0.95rem;
            color: var(--accent-primary);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .finished-copy-icon {
            font-size: 1rem;
            color: #888;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 2px;
        }

        .finished-copy-icon:hover {
            color: #fff;
        }

        .finished-copy-icon.copied {
            color: #22c55e;
        }

        .finished-modal-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .finished-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 24px;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            border: none;
        }

        .finished-btn-next {
            background: var(--accent-gradient);
            color: #fff;
        }

        .finished-btn-next:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-primary) 40%, transparent);
        }

        .finished-btn-home {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .finished-btn-home:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Fullscreen Mode */
        .fullscreen .reader-header,
        .fullscreen .reader-nav {
            opacity: 0;
        }

        .fullscreen:hover .reader-header,
        .fullscreen:hover .reader-nav {
            opacity: 1;
        }

        /* Mobile */
        @media (max-width: 768px) {
            .reader-controls {
                gap: 4px;
            }

            .control-btn {
                width: 34px;
                height: 34px;
                padding: 6px;
            }

            .control-btn i {
                font-size: 1rem;
            }

            .reader-nav {
                padding: 12px 16px;
            }

            .nav-btn {
                padding: 10px 8px;
                font-size: 0.8rem;
                gap: 6px;
            }

            .nav-btn i {
                font-size: 1.1rem;
            }

            .nav-menu {
                padding: 10px 16px;
            }

            .nav-menu i {
                font-size: 1.3rem;
            }

            .page-indicator-float {
                bottom: 80px;
            }

            /* Hide PC-only elements on mobile */
            .pc-only {
                display: none !important;
            }

            .settings-menu {
                right: 0;
                min-width: 240px;
                max-width: calc(100vw - 32px);
            }

            /* Mobile Full-height Dialog for Chapter Modal */
            .chapter-modal {
                align-items: flex-start;
                padding: 0;
            }

            .chapter-modal-content {
                width: 100%;
                max-width: 100%;
                height: 100%;
                max-height: 100%;
                border-radius: 0;
                border: none;
            }

            .chapter-modal-header {
                padding: 12px 14px;
            }

            .chapter-modal-search {
                padding: 8px 14px;
            }

            .chapter-modal-item {
                padding: 14px 16px;
            }
        }