/* ===== READER ===== */

.reader-shell{
  margin-top:20px;
}

.reader-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
  padding:18px;
  border-radius:20px;
  background:
    radial-gradient(circle at top right, rgba(168,85,247,.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)),
    var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.reader-header__left{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.reader-series{
  font-size:24px;
  font-weight:900;
}

.reader-chapter{
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

.reader-header__right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.reader-select{
  height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  outline:none;
}

.reader{
  width:100%;
}

.reader--scroll{
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:center;
}

.reader--paged{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:60vh;
}

.reader__img{
  width:100%;
  max-width:920px;
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  background:rgba(255,255,255,.03);
}

.reader-nav{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  padding:16px;
  border-radius:20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)),
    var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.reader-nav__center{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.reader-nav__edge{
  min-width:190px;
  justify-content:center;
}

.reader-page-indicator{
  min-width:90px;
  text-align:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-weight:900;
}

@media(max-width:900px){
  .reader-header{
    padding:14px;
  }

  .reader-series{
    font-size:20px;
  }

  .reader-header__right{
    width:100%;
  }

  .reader-select{
    flex:1;
    min-width:0;
  }

  .reader-nav{
    flex-direction:column;
    align-items:stretch;
  }

  .reader-nav__center{
    width:100%;
  }

  .reader-nav .btn{
    width:100%;
    justify-content:center;
  }

  .reader-nav__edge{
    min-width:0;
  }

  .reader-page-indicator{
    width:100%;
  }
}