main.book-main {
    width: 70%;
    display: flex;
    margin: 0 auto;
    flex-direction: row;
    align-items: flex-start;
    padding: 40px 0;
}
p.book-title{
    padding: 30px;
    border: 2px solid var(--line-color);
    border-radius: 5px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom:20px;
}
ul.book-menu {
    text-align: center;
    width: 35%;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--box-color);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}
ul.book-menu li{
    padding: 10px;
}
ul.book-menu li a{
    display: block;
}
ul.book-menu li:hover{
    background-color: var(--main-color);
}
ul.book-menu .title-sm{
    text-align: center;
}
section.libary{
    width:65%;
    padding-right: 20px;
}
ul.book{
    width:100%;
    height: auto;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--line-color);
    display: flex;
    position: relative;
}
.cover{
    height: 30vh;
    border-radius: 5px;
}
li.book-info{
    padding-left: 10px;
}

/* YENİ: Oxu + Yüklə düymələri üçün qab (əvvəlki absolute mövqeyi buraya köçürüldü) */
.book-actions{
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 8px;
}
.book-btn{
    border-radius: 5px;
    background-color: var(--box-color);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    transition: 100ms;
    color: var(--text-color);
    padding: 5px 20px;
}
.book-btn:hover {
    background-color: var(--btn-hover);
    color: var(--main-color);
    border-radius: 5px;
}
.oxu-btn{
    cursor: pointer;
}

@media (min-width: 1024px) {
    main.book-main {
        width: 100%;
        max-width: 1200px;
    }
}
@media(max-width:600px){
    main.book-main{
        width:100%;
        flex-direction: column-reverse;
    }
    ul.book-menu{
        width:95%;
        height: auto;
        margin: 0 auto;
        text-align: center;
        margin-bottom: 40px;
    }
    section.libary{
        width:100%;
        margin: 0 auto;
        padding: 0;
    }
    ul.book{
        height: 30vh;
        padding: 0 5px;
    }
    .book-info{
        overflow: auto;
    }
    .cover{
        height:25vh;
    }
    p.book-title{
        width:95%;
        margin: 40px auto;
    }
}

@media(max-width:1024px) and (min-width: 600px){
    main.book-main{
        width:100%;
        flex-direction: column-reverse;
    }
    ul.book-menu{
        width:95%;
        height: auto;
        margin: 0 auto;
        text-align: center;
        margin-bottom: 40px;
    }
    section.libary{
        width:100%;
        margin: 0 auto;
        padding: 0;
    }
    ul.book{
        height: 30vh;
        padding: 0 5px;
    }
    .book-info{
        overflow: auto;
    }
    .cover{
        height:25vh;
    }
    p.book-title{
        width:95%;
        margin: 40px auto;
    }
}

/* =========================================================
   YENİ: AXTARIŞ
   ========================================================= */
ul.book-menu li.book-search,
ul.book-menu li.book-search:hover{
    background-color: transparent;
    list-style: none;
    margin-bottom: 10px;
}
#bookSearch{
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #222;
}
#searchStatus{
    font-size: 13px;
    margin: 6px 0;
    opacity: .75;
    text-align: left;
}

/* Status sətrindəki kateqoriya adları: bold, bordersiz, yumşaq görünüş, sola yaslı */
#searchStatus .sr-jump{
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    width: 100% !important;
    margin: 2px 0 !important;
    padding: 6px 10px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    font-weight: 700 !important;
    text-align: left !important;
    cursor: pointer;
    transition: background-color .15s ease;
}
#searchStatus .sr-jump:hover,
#searchStatus .sr-jump:focus-visible{
    background: rgba(0, 0, 0, .06) !important;
    text-decoration: none !important;
}
#searchStatus .sr-jump:active{
    background: rgba(0, 0, 0, .1) !important;
}

#searchResults{
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
}

/* Nəticələr siyahısında kateqoriya başlığı */
.sr-cat{
    font-weight: 700;
    font-size: 15px;
    margin: 14px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-color);
}
.sr-cat:first-child{
    margin-top: 0;
}

.sr-book{
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0 4px;
}
.sr-item{
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    color: #222;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}
.sr-item:hover{
    background: #FFFBE8;
}
.sr-item small{
    display: block;
    color: #999;
}
.sr-item mark{
    background: #ffe066;
    padding: 0;
}

/* =========================================================
   YENİ: TAM EKRAN PDF OXUYUCU (ağ kağız görünüşü)
   ========================================================= */
.pdf-modal{
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
}
.pdf-modal[hidden]{
    display: none;
}
.pdf-close{
    position: fixed;
    top: 14px;
    right: 28px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.08);
    color: #222;
    font-size: 20px;
    line-height: 40px;
    padding: 0;
    cursor: pointer;
}
.pdf-close:hover{
    background: rgba(0,0,0,.18);
}
.pdf-body{
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
    padding: 64px 0 20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.pdf-page{
    position: relative;
    margin: 0 auto 16px;
    background: #fff;
}
.pdf-page canvas{
    display: block;
}
.pdf-msg{
    color: #333;
    text-align: center;
    padding: 40px;
}
.pdf-modal .textLayer{
    position: absolute;
    inset: 0;
    overflow: hidden;
    line-height: 1;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    user-select: text;
}
.pdf-modal .textLayer span,
.pdf-modal .textLayer br{
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0 0;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    font-weight: normal !important;
    font-style: normal !important;
    background: transparent;
    border: 0 !important;
    text-shadow: none !important;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}
.pdf-modal .textLayer span.hl{
    background: rgba(255,220,0,.55) !important;
    border-radius: 2px;
}

/* Axtarış nəticələrinin işarələnməsi (canvas-ın üstündə, mətn qatının altında) */
.pdf-page .hlLayer{
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.pdf-page .hl-box{
    position: absolute;
    background: rgba(255, 214, 0, .5);
    mix-blend-mode: multiply;
    border-radius: 2px;
}
.pdf-page .hl-box.cur{
    background: rgba(255, 130, 0, .6);
}

/* Oxuyucu içi minimalist axtarış çubuğu */
.pdf-modal .pdf-find{
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 8px 0 12px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,.22);
    color: #666;
}
.pdf-modal .pdf-find input{
    width: 170px;
    height: 32px;
    box-sizing: border-box;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #222;
    font-size: 16px;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}
.pdf-modal .pdf-find input::-webkit-search-cancel-button{
    -webkit-appearance: none;
}
.pdf-modal .pdf-find #rdNav{
    display: flex;
    align-items: center;
    gap: 2px;
}
.pdf-modal .pdf-find #rdNav[hidden]{
    display: none;
}
.pdf-modal .pdf-find #rdCount{
    font-size: 12px;
    color: #777;
    min-width: 34px;
    text-align: center;
    white-space: nowrap;
}
.pdf-modal .pdf-find button{
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #333;
    font-size: 16px;
    line-height: 28px;
    cursor: pointer;
}
.pdf-modal .pdf-find button:hover:not(:disabled){
    background: rgba(0,0,0,.08);
}
.pdf-modal .pdf-find button:disabled{
    opacity: .35;
    cursor: default;
}
.pdf-modal .textLayer span.cur{
    background: rgba(255,140,0,.6) !important;
    border-radius: 2px;
}
@media (max-width: 600px){
    .pdf-modal .pdf-find{
        left: 10px;
        right: 64px;
        transform: none;
    }
    .pdf-modal .pdf-find input{
        flex: 1;
        width: auto;
        min-width: 0;
    }
    .pdf-close{
        right: 10px;
    }
}

/* =========================================================
   YENİ: Mobil/planşet - kart ölçüsü sabit, mətn kaydırılır,
   Oxu və Yüklə düymələri mətnin ALTINDA ayrıca zolaqda durur
   (Bu blok faylın ƏN SONUNDA qalmalıdır)
   ========================================================= */
@media (max-width: 1024px) {
    ul.book{
        height: calc(30vh + 52px);   /* əvvəlki 30vh mətn sahəsi + düymələr üçün 52px zolaq */
        padding: 0 5px;
    }
    ul.book .book-info{
        overflow-y: auto;
        overflow-x: hidden;
        margin-bottom: 52px;         /* mətn qutusu düymələrin zolağında bitir */
        -webkit-overflow-scrolling: touch;
    }
    .book-actions{
        bottom: 8px;
        right: 5px;
        gap: 6px;
    }
    .book-btn{
        font-size: 1rem;
        padding: 6px 14px;
    }
}