
body{
margin:0;
font-family:Arial,sans-serif;
background:#07111f;
color:white;
overflow-x:hidden;
transition:.3s;
}

.light-mode{
background:#f4f4f4;
color:#111;
}

.bg-effects{
position:fixed;
inset:0;
background:
radial-gradient(circle at 20% 20%, rgba(123,92,255,.22), transparent 20%),
radial-gradient(circle at 80% 40%, rgba(0,200,255,.18), transparent 20%),
radial-gradient(circle at 50% 80%, rgba(255,0,180,.14), transparent 20%);
animation:bgmove 16s infinite alternate ease-in-out;
z-index:-2;
}

.stars{
position:fixed;
inset:0;
background-image:
radial-gradient(white 1px, transparent 1px);
background-size:40px 40px;
opacity:.12;
animation:floatstars 60s linear infinite;
z-index:-1;
}

@keyframes bgmove{
from{transform:scale(1) rotate(0deg);}
to{transform:scale(1.1) rotate(6deg);}
}

@keyframes floatstars{
from{transform:translateY(0);}
to{transform:translateY(-200px);}
}

.hero{
text-align:center;
padding:80px 20px;
}

.hero h1{
font-size:82px;
margin:0;
text-shadow:0 0 30px rgba(255,255,255,.15);
}

.hero p{
opacity:.8;
font-size:22px;
}

.books-grid{
display:grid;
grid-template-columns:repeat(6,260px);
justify-content:center;
gap:30px;
padding:40px;
}

.book-card{
width:260px;
background:rgba(255,255,255,.08);
border-radius:26px;
overflow:hidden;
backdrop-filter:blur(10px);
transition:.25s;
border:1px solid rgba(255,255,255,.08);
}

.book-card:hover{
transform:translateY(-10px) scale(1.03);
box-shadow:0 0 35px rgba(124,58,237,.35);
}

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

.book-content{
padding:20px;
}

.buttons{
display:flex;
gap:10px;
margin-top:20px;
}

a,button{
background:linear-gradient(135deg,#7c3aed,#9333ea);
color:white;
padding:12px 18px;
border:none;
border-radius:14px;
text-decoration:none;
cursor:pointer;
}

.topbar{
display:flex;
justify-content:center;
gap:20px;
padding:20px;
}

.topbar input{
width:400px;
padding:14px;
border:none;
border-radius:14px;
}

.reader-tools{
display:flex;
gap:12px;
margin:20px 0;
}

.progress-container{
position:fixed;
top:0;
left:0;
width:100%;
height:5px;
background:rgba(255,255,255,.08);
z-index:9999;
}

.progress-bar{
height:100%;
width:0%;
background:#8b5cf6;
transition:.1s;
}

.reader-page{
max-width:1300px;
margin:auto;
padding:40px;
}

.reader-content{
font-size:18px;
line-height:1.8;
}

iframe{
width:100%;
height:900px;
border:none;
border-radius:22px;
background:white;
}

.seo-section{
max-width:1200px;
margin:auto;
padding:30px;
opacity:.75;
}

.ambient-bar{
position:fixed;
bottom:20px;
right:20px;
display:flex;
gap:10px;
z-index:999;
}

@media(max-width:1800px){
.books-grid{grid-template-columns:repeat(5,260px);}
}

@media(max-width:1500px){
.books-grid{grid-template-columns:repeat(4,260px);}
}

@media(max-width:1200px){
.books-grid{grid-template-columns:repeat(3,260px);}
}

@media(max-width:900px){
.books-grid{grid-template-columns:repeat(2,260px);}
}

@media(max-width:650px){
.books-grid{grid-template-columns:repeat(1,260px);}
.hero h1{font-size:56px;}
.topbar{flex-direction:column;align-items:center;}
.topbar input{width:90%;}
}

.cover-image{
cursor:pointer;
}

.cover-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.85);
display:flex;
justify-content:center;
align-items:center;
opacity:0;
pointer-events:none;
transition:.25s;
z-index:99999;
backdrop-filter:blur(8px);
padding:40px;
}

.cover-modal.active{
opacity:1;
pointer-events:auto;
}

#coverPreview{
max-width:90%;
max-height:90%;
border-radius:24px;
box-shadow:0 0 60px rgba(0,0,0,.5);
animation:zoomIn .25s ease;
}

@keyframes zoomIn{

from{
transform:scale(.8);
opacity:0;
}

to{
transform:scale(1);
opacity:1;
}

}

.adult-badge{
margin-top:12px;
display:inline-block;
background:#dc2626;
padding:8px 14px;
border-radius:12px;
font-weight:bold;
font-size:14px;
}

.author-line{
font-size:24px;
margin-top:15px;
opacity:.9;
}

.hero-text{
margin:auto;
margin-top:30px;
max-width:900px;
padding:30px;
background:rgba(255,255,255,.08);
border-radius:24px;
line-height:1.7;
font-size:20px;
backdrop-filter:blur(10px);
}

.top-buttons{
display:flex;
gap:12px;
align-items:center;
}

html{
scroll-behavior:smooth;
}

*{
box-sizing:border-box;
}

img{
display:block;
}

button:hover,
.btn:hover{
transform:translateY(-2px);
transition:.2s;
}