/* NOVELS page (cards verticais) */

.novels-page{
  max-width:1100px;
  margin:0 auto;
  padding:18px 14px;
}

.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.page-title{
  color:#fff;
  font-size:18px;
  font-weight:800;
  margin:0 0 14px;
  letter-spacing:.4px;
}

.page-subtitle{
  margin:8px 0 0;
  color: rgba(255,255,255,.72);
  max-width: 820px;
}

.breadcrumb{
  margin:6px 0 10px;
  font-size:13px;
  opacity:.9;
}
.breadcrumb a{ color:#bcbcbc; text-decoration:none; }
.breadcrumb a:hover{ color:#fff; }

.novels-filters{
  display:flex;
  gap:12px;
  align-items:flex-end;
  margin: 18px 0 18px;
}

.filter-group{ flex:1; }
.filter-label{
  display:block;
  font-size:12px;
  margin:0 0 6px;
  color: rgba(255,255,255,.65);
}
.filter-input{
  width:100%;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  color:#fff;
  padding:12px 14px;
  outline:none;
}
.filter-input:focus{
  border-color: rgba(128,90,213,.55);
  box-shadow: 0 0 0 3px rgba(128,90,213,.18);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:10px;
  padding:11px 16px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}

.btn-primary{
  background: linear-gradient(135deg, rgba(128,90,213,.9), rgba(85,60,154,.95));
  color:#fff;
}

.novels-catalog{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.novel-card{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:16px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px;
  overflow:hidden;
}

.novel-card__media{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cover-link{
  position:relative;
  display:block;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.cover{
  width:100%;
  height: 260px;
  object-fit: cover;
  display:block;
}

.badge{
  position:absolute;
  top:10px;
  left:10px;
  padding:5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight:800;
  color:#fff;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.badge-age{
  left:auto;
  right:10px;
  top:10px;
  background: rgba(155,89,182,.55);
}

.badge-type.type-web{ background: rgba(46,204,113,.35); }
.badge-type.type-light{ background: rgba(52,152,219,.35); }
.badge-type.type-manga{ background: rgba(231,76,60,.35); }

.media-stats{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:8px;
}

.stat{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 10px;
  text-align:center;
}
.stat__label{
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-bottom:4px;
  text-transform: uppercase;
  letter-spacing:.7px;
}
.stat__value{
  font-size: 15px;
  font-weight: 900;
}

.novel-card__body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.novel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}

.novel-title{
  margin:0;
  font-size: 24px;
  font-weight: 900;
  line-height:1.15;
}
.novel-title a{
  color:#fff;
  text-decoration:none;
}
.novel-title a:hover{ text-decoration:underline; }

.novel-author{
  color: rgba(255,255,255,.65);
  font-size: 13px;
  white-space: nowrap;
}

.novel-flags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

.flag{
  padding:6px 10px;
  border-radius: 999px;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
}
.flag-translation{ background: rgba(52,152,219,.18); }
.flag-work{ background: rgba(46,204,113,.16); }

.novel-synopsis .synopsis-title,
.novel-genres .genres-title{
  font-size:12px;
  color: rgba(255,255,255,.65);
  margin-bottom:6px;
  text-transform: uppercase;
  letter-spacing:.7px;
}

.synopsis-box{
  /* sem scrollbar */
  overflow: hidden;
  max-height: none;

  /* corta a sinopse em X linhas */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; /* ajuste: 5,6,7... */

  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  line-height: 1.45;
  font-size: 13px;
}

/* scrollbar temática */
.synopsis-box::-webkit-scrollbar{ width: 10px; }
.synopsis-box::-webkit-scrollbar-track{
  background: rgba(255,255,255)}
  .genre-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.genre-pills .pill{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  cursor: default;
  user-select:none;
}
/* ===== NOVELS: alinhar topo com Ranking ===== */
.novels-page{
  max-width:1100px;
  margin:0 auto;
  padding:18px 14px;
}

/* header igual ao ranking (breadcrumb em cima, título embaixo) */
.page-header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-start;
  gap:0;
  margin-bottom:14px;
}

/* move o breadcrumb (que está no __right) para cima */
.page-header__right{
  order:-1;
  width:100%;
}

/* força o bloco do título a ficar abaixo */
.page-header__left{
  width:100%;
}

/* breadcrumb igual ao ranking */
.breadcrumb{
  margin:6px 0 10px;
  font-size:13px;
  opacity:.9;

  /* desfaz o "nowrap" que atrapalha */
  white-space:normal;

  /* evita ficar “colado” à direita */
  justify-content:flex-start;
}

/* separador igual ao ranking */
.breadcrumb .sep{
  margin:0 6px;
  opacity:.6;
}

/* título/subtitle com cara de ranking */
.page-title{
  color:#fff;
  font-size:18px;
  font-weight:800;
  margin:0 0 10px;
  letter-spacing:.4px;
  line-height:1.2;
}

.page-subtitle{
  margin:0 0 12px;
  font-size:13px;
  color:rgba(255,255,255,.70);
  line-height:1.4;
  max-width: 900px;
}

/* ===== NOVELS: barra de busca estilo Ranking ===== */
.novels-filters{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  margin:0 0 14px;
}

.novels-filters .filter-group{
  flex:1;
  min-width: 220px;
}

.novels-filters .filter-label{
  display:none; /* ranking não mostra label */
}

.novels-filters .filter-input{
  width:100%;
  background:#2b2b2b;
  color:#ddd;
  border:1px solid #333;
  border-radius:2px;
  padding:10px 12px;
  outline:none;
}

.novels-filters .filter-input::placeholder{
  color: rgba(255,255,255,.35);
}

.novels-filters .btn.btn-primary{
  background:#7b2cff;
  color:#fff;
  border:0;
  border-radius:2px;
  padding:10px 16px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  gap:8px;
  align-items:center;
  white-space:nowrap;
}

@media (max-width: 640px){
  .novels-filters{ flex-wrap:wrap; }
  .novels-filters .filter-group{ width:100%; }
  .novels-filters .btn.btn-primary{ width:100%; justify-content:center; }
}
