.flipbook-container {
            width: 100vw;
            height: 190vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .controls-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 100;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 20px;
        }
        
        .bottom-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            pointer-events: auto;
            margin-bottom: 60px;
        }
        
        @media (min-width: 768px) {
            .top-controls {
                margin-top: 12%;
            }
        }
        
        @media (min-width: 769px) {
            .controls-overlay .bottom-controls {
                display: flex;
            }
        }
        
        @media (max-width: 768px) {
            .controls-overlay .bottom-controls {
                display: none;
            }
            .flipbook-container {
                height: auto;
                overflow: visible;
            }
        }
        
        .top-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
            pointer-events: auto;
        }
        
        .btn-nav, .btn-zoom {
            background: rgb(255, 162, 0);
            backdrop-filter: blur(10px);
            color: black;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-nav {
            width: 48px;
            height: 48px;
            padding: 0;
        }
        
        .btn-zoom {
            width: 40px;
            height: 40px;
            padding: 0;
            font-size: 24px;
            font-weight: 300;
            line-height: 1;
        }
        
        .btn-nav:hover:not(:disabled), .btn-zoom:hover:not(:disabled) {
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }
        
        .btn-nav:active:not(:disabled), .btn-zoom:active:not(:disabled) {
            transform: translateY(0);
        }
        
        .btn-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .btn-zoom:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .zoom-level {
            background: rgb(255, 162, 0);
            backdrop-filter: blur(10px);
            color: black;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-width: 60px;
            text-align: center;
        }
        
        .page-indicator {
            background: rgb(255, 162, 0);
            backdrop-filter: blur(10px);
            color: black;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-width: 80px;
            text-align: center;
        }
        
        .flip-book {
            background-size: cover;
            display: none;
            transition: transform 0.3s ease;
        }
        
        .page {
            padding: 15px;
            background-color: hsl(35, 55%, 98%);
            color: hsl(35, 35%, 35%);
            border: solid 1px hsl(35, 20%, 70%);
            overflow: hidden;
        }
        
        .page .page-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: stretch;
        }
        
        .page .page-content .page-header {
            height: auto;
            min-height: 30px;
            font-size: clamp(16px, 4vw, 22px);
            text-transform: uppercase;
            text-align: center;
            margin-bottom: 10px;
            font-weight: bold;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .page .page-content .page-image {
            height: auto;
            min-height: 200px;
            background-size: contain;
            background-position: center center;
            background-repeat: no-repeat;
            margin: 10px 0;
            flex-grow: 1;
        }
        
        .page .page-content .page-text {
            flex-grow: 1;
            font-size: clamp(12px, 3vw, 14px);
            line-height: 1.6;
            text-align: justify;
            margin-top: 10px;
            padding-top: 10px;
            box-sizing: border-box;
            border-top: solid 1px hsl(35, 55%, 90%);
            overflow-y: auto;
            max-height: 40vh;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .page .page-content .page-footer {
            height: 30px;
            border-top: solid 1px hsl(35, 55%, 90%);
            font-size: 14px;
            color: hsl(35, 20%, 50%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
            padding-top: 10px;
        }
        
        .page.--left {
            border-right: 0;
            box-shadow: inset -7px 0 30px -7px rgba(0, 0, 0, 0.4);
        }
        
        .page.--right {
            border-left: 0;
            box-shadow: inset 7px 0 30px -7px rgba(0, 0, 0, 0.4);
        }
        
        .page.--right .page-footer {
            text-align: right;
            justify-content: flex-end;
        }
        
        .page.hard {
            background-color: hsl(35, 50%, 90%);
            border: solid 1px hsl(35, 20%, 50%);
        }
        
        .page.page-cover {
            background-color: rgb(255, 162, 0);
            color: hsl(35, 35%, 35%);
            border: solid 1px hsl(35, 20%, 50%);
        }
        
        .page.page-cover h2 {
            text-align: center;
            padding-top: 40%;
            font-size: clamp(24px, 6vw, 32px);
            margin: 0;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .page.page-cover.page-cover-top {
            box-shadow: inset 0px 0 30px 0px rgba(36, 10, 3, 0.5), -2px 0 5px 2px rgba(0, 0, 0, 0.4);
        }
        
        .page.page-cover.page-cover-bottom {
            box-shadow: inset 0px 0 30px 0px rgba(36, 10, 3, 0.5), 10px 0 8px 0px rgba(0, 0, 0, 0.4);
        }
        
        .pdf-page .page-content {
            width: 100%;
            height: 100%;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .pdf-page canvas {
            width: 100%;
            height: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,.35);
            border-radius: 6px;
        }
        
        @media (min-width: 769px) {
            .bottom-controls {
                margin-top: -10%;
            }
        }
        
        @media (max-width: 768px) {
            .flipbook-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                height: auto;
            }
            
            .flip-book {
                order: 2;
                margin-top: 10px;
            }
            
            .controls-overlay {
                position: static;
                order: 1;
                padding: 10px 0;
            }
            
            .bottom-controls {
                order: 3;
                position: static;
                margin: 16px 0 0;
                padding-bottom: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .controls-overlay {
                padding: 10px;
            }
            
            .top-controls {
                gap: 4px;
            }
            
            .bottom-controls {
                gap: 10px;
            }
            
            .btn-nav {
                width: 40px;
                height: 40px;
            }
            
            .btn-nav svg {
                width: 18px;
                height: 18px;
            }
            
            .btn-zoom {
                width: 32px;
                height: 32px;
                font-size: 18px;
            }
            
            .zoom-level {
                padding: 5px 10px;
                font-size: 12px;
                min-width: 50px;
            }
            
            .page-indicator {
                padding: 6px 12px;
                font-size: 13px;
                min-width: 60px;
            }
            
            .flip-book {
                max-width: 100%;
            }
            
            .page .page-content .page-header {
                font-size: 18px;
                margin-bottom: 5px;
            }
            
            .page .page-content .page-image {
                min-height: 120px;
            }
            
            .page .page-content .page-text {
                font-size: 12px;
                line-height: 1.4;
                max-height: 30vh;
            }
            
            .page.page-cover h2 {
                padding-top: 30%;
                font-size: 24px;
            }
        }
        
        @media (max-width: 768px) and (orientation: portrait) {
            .flipbook-container {
                max-height: 75vh;
            }
            
            .page .page-content .page-text {
                font-size: 12px;
                line-height: 1.4;
            }
        }
        
        @media (max-width: 1024px) and (orientation: landscape) {
            .controls-overlay {
                padding: 5px;
            }
            
            .flipbook-container {
                max-height: 80vh;
            }
            
            .page .page-content .page-text {
                max-height: 50vh;
            }
        }
        
        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .btn-nav {
                padding: 14px 20px;
                min-width: 100px;
            }
            
            .page .page-content .page-text {
                font-size: 14px;
                line-height: 1.6;
            }
        }