body{
margin:0;
font-family:Arial;
background:#111;
color:white;
}

header{
display:flex;
justify-content:space-between;
padding:15px;
background:#000;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:20px;
padding:20px;
}

.card{
background:#1a1a1a;
border-radius:10px;
overflow:hidden;
text-decoration:none;
color:white;
}

.card img{
width:100%;
height:260px;
object-fit:cover;
}

.card h3{
padding:10px;
}

.book-page{
max-width:700px;
margin:auto;
padding:30px;
}

.cover{
width:200px;
}

.read-btn{
display:inline-block;
padding:10px 20px;
background:red;
color:white;
text-decoration:none;
margin-top:10px;
}

.reader{
background:#000;
}
/* 
.pdf-container{
width:100%;
height:100vh;
} */

/* .pdf-viewer{
width:100%;
height:100%;
border:none;
} */

.back{
color:white;
padding:10px;
display:inline-block;
}

@media(max-width:600px){

.grid{
grid-template-columns:repeat(2,1fr);
}

}

/* FULL LAYOUT */

.reader-layout{
background:#0b0b0b;
color:white;
margin:0;
font-family:Arial;
}

/* CLOSE BUTTON */
.close-btn{
position:absolute;
top:15px;
left:15px;
color:white;
font-size:22px;
text-decoration:none;
z-index:10;
}

/* MAIN WRAPPER */
.reader-wrapper{
display:flex;
height:100vh;
}

/* LEFT PANEL */
.reader-info{
width:30%;
padding:20px;
background:#121212;
overflow-y:auto;
display:flex;
flex-direction:column;
align-items:flex-start;
}

.reader-cover{
width:110px;
height:160px;
margin-bottom:10px;
}

.tags span{
background:#222;
padding:5px 10px;
margin-right:5px;
border-radius:20px;
font-size:12px;
}

.reader-info h2{
font-size:18px;
margin:10px 0;
}

.tags span{
font-size:11px;
padding:4px 8px;
}
.desc{
margin-top:15px;
line-height:1.6;
color:#ccc;
}

/* RIGHT PANEL */
.reader-viewer{
width:70%;
background:black;
}

.pdf-frame{
width:100%;
height:100%;
border:none;
}

/* 📱 MOBILE RESPONSIVE */
@media(max-width:768px){

.reader-wrapper{
flex-direction:column;
}
.reader-cover{
width:90px;
height:130px;
}
.reader-info{
width:100%;
height:auto;
}

.reader-viewer{
width:100%;
height:70vh;
}

}