/* Shared sidebar: book rankings + Cường Giả. Used on home (via vozer-home-ui) and post/chapter show. */

/* ── Sidebar book rankings ── */
.vz-book-rank{
  --vz-br-ink:#0f172a;
  --vz-br-mute:#64748b;
  --vz-br-soft:#94a3b8;
  --vz-br-thumb:5.25rem;
  --vz-br-page:#f8f9fb; /* body bg — blend outward */
  container-type:inline-size;
  container-name:vz-book-rank;
  overflow:hidden;
  border-radius:0;
  border:0;
  /* Center stays slightly paper-white, edges dissolve into page bg */
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.55) 42%, rgba(248,249,251,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(248,249,251,0) 100%);
  box-shadow:none;
}
@media (min-width:768px){
  .vz-book-rank{
    border-radius:20px;
  }
}

/* Soft header that fades into list, no hard bar / no grid */
.vz-book-rank__header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.55rem .5rem .3rem;
  background:transparent;
  border:0;
}
.vz-book-rank__tabs{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:0;
  min-height:3.1rem;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.vz-book-rank__tabs::after{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(15,23,42,.08), transparent);
}
.vz-book-rank__tab{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  min-width:0;
  min-height:3rem;
  padding:.45rem .55rem .7rem;
  border:0;
  border-radius:0;
  background:transparent;
  color:#98a2b3;
  cursor:pointer;
  transition:color .16s ease, opacity .16s ease;
}
.vz-book-rank__tab:hover{color:#475569}
.vz-book-rank__tab:hover .vz-book-rank__tab-ico{
  opacity:.9;
  background:rgba(148,163,184,.12);
}
.vz-book-rank__tab:not(.is-active):hover{
  opacity:1;
}

.vz-book-rank__tab:focus{outline:none}
.vz-book-rank__tab:focus-visible{
  outline:2px solid rgba(15,23,42,.16);
  outline-offset:2px;
  border-radius:8px;
}
.vz-book-rank__tab.is-active{
  color:#0f172a;
  background:transparent;
  box-shadow:none;
}
.vz-book-rank__tab.is-active::after{
  content:"";
  position:absolute;
  left:22%;
  right:22%;
  bottom:0;
  height:2.5px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, currentColor 18%, currentColor 82%, transparent);
  opacity:.9;
}
.vz-book-rank__tab.is-active.is-fengyun{
  color:#0f172a;
}
.vz-book-rank__tab.is-active.is-fengyun::after{
  background:linear-gradient(90deg, transparent, #334155 14%, #0f172a 50%, #334155 86%, transparent);
  box-shadow:0 0 10px rgba(15,23,42,.08);
}
.vz-book-rank__tab.is-active.is-shenzuo{
  color:#9a6a12;
}
.vz-book-rank__tab.is-active.is-shenzuo::after{
  background:linear-gradient(90deg, transparent, #d4a017 14%, #b45309 50%, #d4a017 86%, transparent);
  box-shadow:0 0 12px rgba(180,83,9,.12);
}








.vz-book-rank__tab-ico{
  display:inline-flex;
  width:1.45rem;
  height:1.45rem;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:currentColor;
  opacity:.72;
  background:rgba(148,163,184,.08);
  box-shadow:inset 0 0 0 1px rgba(148,163,184,.12);
  transition:background-color .16s ease, box-shadow .16s ease, opacity .16s ease, color .16s ease;
}
.vz-book-rank__tab-ico svg{
  width:13px;
  height:13px;
}
.vz-book-rank__tab.is-active .vz-book-rank__tab-ico{
  opacity:1;
}
.vz-book-rank__tab.is-active.is-fengyun .vz-book-rank__tab-ico{
  color:#0f172a;
  background:rgba(15,23,42,.05);
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.1);
}
.vz-book-rank__tab.is-active.is-shenzuo .vz-book-rank__tab-ico{
  color:#b45309;
  background:rgba(251,191,36,.14);
  box-shadow:inset 0 0 0 1px rgba(180,83,9,.16);
}
.vz-book-rank__tab-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
  gap:.08rem;
}
.vz-book-rank__tab-kicker{
  color:inherit;
  font-size:8.5px;
  font-weight:700;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
  opacity:.55;
}
.vz-book-rank__tab.is-active .vz-book-rank__tab-kicker{
  opacity:.72;
}
.vz-book-rank__tab-label{
  font-size:13px;
  font-weight:900;
  letter-spacing:.04em;
  line-height:1.05;
  white-space:nowrap;
}
@media (min-width:768px){
  .vz-book-rank__tab-label{font-size:14px}

}

/* Compact dense list; 2 cols only when board is truly wide.
   Mobile / half-width post panels stay 1-col so titles & metrics aren't clipped. */
.vz-book-rank__list{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.4rem;
  padding:.55rem;
}
@container vz-book-rank (min-width: 720px){
  .vz-book-rank__list{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:.45rem;
    padding:.6rem;
  }
}
@supports not (container-type: inline-size){
  @media (min-width: 1280px){
    .vz-book-rank__list{
      grid-template-columns:repeat(2, minmax(0,1fr));
    }
  }
}

/* Always horizontal: thumb left ~ same visual weight as text right */
.vz-book-rank__item{
  position:relative;
  display:flex;
  min-width:0;
  align-items:stretch;
  gap:.6rem;
  min-height:0;
  padding:.45rem .5rem;
  border-radius:11px;
  border:1px solid rgba(148,163,184,.12);
  background:rgba(255,255,255,.72);
  box-shadow:0 1px 0 rgba(255,255,255,.65) inset;
  text-decoration:none;
  color:inherit;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}
.vz-book-rank__item:hover{
  z-index:1;
  background:rgba(255,255,255,.98);
  border-color:rgba(100,116,139,.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 6px 16px rgba(15,23,42,.06);
  transform:translateY(-1px);
}
.vz-book-rank__item:active{
  transform:translateY(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 2px 8px rgba(15,23,42,.04);
}
.vz-book-rank__item:focus-visible{
  outline:2px solid rgba(15,23,42,.18);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce){
  .vz-book-rank__item,
  .vz-book-rank__tab,
  .vz-book-rank__thumb{transition:none}
  .vz-book-rank__item:hover,
  .vz-book-rank__item:active{transform:none}
}

.vz-book-rank__media{
  position:relative;
  flex:0 0 var(--vz-br-thumb);
  width:var(--vz-br-thumb);
  align-self:center;
  min-height:3.5rem;
}
@container vz-book-rank (min-width: 720px){
  .vz-book-rank{
    --vz-br-thumb:5rem; /* ~80px in 2-col */
  }
}
@container vz-book-rank (min-width: 640px){
  .vz-book-rank{
    --vz-br-thumb:5.5rem; /* slightly larger when roomy */
  }
}
.vz-book-rank__thumb{
  display:block;
  width:100%;
  height:auto;
  min-height:3.5rem;
  aspect-ratio:3/2;
  border-radius:8px;
  object-fit:cover;
  background:#eef2ff;
  box-shadow:0 1px 5px rgba(15,23,42,.1);
  transition:filter .18s ease, box-shadow .18s ease, opacity .18s ease;
}
/* No scale on thumb — board shell uses overflow:hidden and badges hang outside media */
.vz-book-rank__item:hover .vz-book-rank__thumb{
  filter:saturate(1.03) contrast(1.015);
  box-shadow:0 2px 8px rgba(15,23,42,.12);
}
@media (prefers-reduced-motion:reduce){
  .vz-book-rank__item:hover .vz-book-rank__thumb{
    filter:none;
  }
}
.vz-book-rank__badge{
  position:absolute;
  top:-.32rem;
  left:-.32rem;
  z-index:1;
  display:inline-flex;
  min-width:1.15rem;
  height:1.15rem;
  align-items:center;
  justify-content:center;
  padding:0 .2rem;
  border-radius:6px;
  font-size:9.5px;
  font-weight:900;
  line-height:1;
  font-variant-numeric:tabular-nums;
  box-shadow:0 1px 4px rgba(15,23,42,.16);
}
.vz-book-rank__badge.is-icon{
  /* Match category ranking cards: -left-2 -top-2 + h-7 w-7 */
  top:-.5rem;
  left:-.5rem;
  min-width:1.75rem;
  width:1.75rem;
  height:1.75rem;
  padding:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 3px 8px rgba(15,23,42,.18));
  pointer-events:none;
}
.vz-book-rank__badge.is-icon.is-gold,
.vz-book-rank__badge.is-icon.is-silver,
.vz-book-rank__badge.is-icon.is-bronze{
  background:transparent;
}
.vz-book-rank__badge.is-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.vz-book-rank__badge.is-gold{
  color:#fff;
  background:linear-gradient(180deg,#f59e0b,#d97706);
}
.vz-book-rank__badge.is-silver{
  color:#fff;
  background:linear-gradient(180deg,#94a3b8,#64748b);
}
.vz-book-rank__badge.is-bronze{
  color:#fff;
  background:linear-gradient(180deg,#fb923c,#ea580c);
}
/* ranks 4-10: smaller, softer chip so top 1-3 icons stay dominant */
.vz-book-rank__badge.is-plain{
  top:-.22rem;
  left:-.22rem;
  min-width:1rem;
  height:1rem;
  padding:0 .16rem;
  border-radius:999px;
  color:#64748b;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:-.01em;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow:
    inset 0 0 0 1px rgba(148,163,184,.38),
    0 1px 2px rgba(15,23,42,.08);
  backdrop-filter:blur(2px);
}
.vz-book-rank__item:hover .vz-book-rank__badge.is-plain{
  color:#475569;
  box-shadow:
    inset 0 0 0 1px rgba(99,102,241,.22),
    0 2px 5px rgba(15,23,42,.08);
}

.vz-book-rank__body{
  display:flex;
  min-width:0;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
  gap:.14rem;
  padding:.05rem 0;
}
.vz-book-rank__title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  color:#0f172a;
  font-size:12px;
  font-weight:800;
  line-height:1.28;
  transition:color .15s ease;
}
@container vz-book-rank (min-width: 720px){
  .vz-book-rank__title{font-size:11.5px}
}
.vz-book-rank__item:hover .vz-book-rank__title{color:#0f172a}
.vz-book-rank__byline{
  display:flex;
  min-width:0;
  align-items:center;
  gap:.32rem;
  color:#64748b;
  font-size:10.5px;
  line-height:1.2;
}
.vz-book-rank__author,
.vz-book-rank__category{
  overflow:hidden;
  font-size:inherit;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vz-book-rank__author{
  min-width:0;
  flex:1 1 auto;
  color:#6b7280;
  font-weight:500;
}
.vz-book-rank__byline-sep{
  flex:0 0 auto;
  color:#94a3b8;
  font-weight:600;
}
.vz-book-rank__category{
  display:inline-flex;
  min-width:0;
  flex:0 1 auto;
  max-width:52%;
  align-items:center;
  gap:.2rem;
  color:#475569;
  font-weight:750;
  letter-spacing:.01em;
  cursor:pointer;
  transition:color .15s ease;
}
.vz-book-rank__category-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vz-book-rank__category:hover,
.vz-book-rank__category:focus-visible{
  color:#1e293b;
}
.vz-book-rank__category:focus-visible{
  outline:2px solid rgba(15,23,42,.16);
  outline-offset:1px;
  border-radius:3px;
}
.vz-book-rank__metrics{
  display:flex;
  flex-wrap:nowrap;
  align-items:flex-end;
  gap:.18rem .55rem;
  margin-top:.18rem;
  padding:.24rem .4rem .26rem;
  border-radius:8px;
  background:rgba(248,250,252,.68);
}
.vz-book-rank__metric{
  position:relative;
  flex:1 1 0;
  min-width:2.4rem;
  display:flex;
  flex-direction:column;
  gap:.1rem;
}
/* soft split between adjacent stats on the same row */
.vz-book-rank__metric + .vz-book-rank__metric::before{
  content:"";
  position:absolute;
  left:-.28rem;
  top:.18rem;
  bottom:.12rem;
  width:1px;
  background:linear-gradient(180deg, transparent, rgba(148,163,184,.26), transparent);
}
.vz-book-rank__metric-label{
  display:block;
  overflow:hidden;
  color:#a0aab8;
  font-size:7px;
  font-weight:600;
  letter-spacing:.03em;
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vz-book-rank__metric-value{
  display:block;
  overflow:hidden;
  color:#475569; /* slate fallback */
  font-size:10.5px;
  font-weight:800;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.015em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* Board-tone colors, pushed apart so amber ticket != orange fan heat */
.vz-book-rank__metric.is-monthlyTicket .vz-book-rank__metric-value{
  color:#dc2626; /* red — Nguyệt phiếu */
}
.vz-book-rank__metric.is-blade .vz-book-rank__metric-value{
  color:#be123c; /* rose — Phiếu dao */
}
.vz-book-rank__metric.is-recommendation .vz-book-rank__metric-value{
  color:#0284c7; /* sky — Đề cử */
}
.vz-book-rank__metric.is-popularity .vz-book-rank__metric-value{
  color:#0284c7; /* sky — Độ hot / Hoa */
}
.vz-book-rank__metric.is-fanValue .vz-book-rank__metric-value{
  color:#38bdf8; /* sky — Nhân khí (match source spark icon) */
}
.vz-book-rank__metric.is-comment .vz-book-rank__metric-value{
  color:#ca8a04; /* yellow/gold — Bình luận */
}
.vz-book-rank__metric.is-view .vz-book-rank__metric-value{
  color:#5b7c99; /* lunar blue — Lượt đọc */
}
.vz-book-rank__metric.is-reader .vz-book-rank__metric-value{
  color:#2563eb; /* blue — Đang đọc */
}
.vz-book-rank__metric.is-listen .vz-book-rank__metric-value,
.vz-book-rank__metric.is-listeningNow .vz-book-rank__metric-value{
  color:#0f9f8f; /* teal — Lượt nghe */
}
.vz-book-rank__item:hover .vz-book-rank__metrics{
  background:rgba(255,255,255,.88);
  box-shadow:inset 0 0 0 1px rgba(148,163,184,.12);
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-monthlyTicket .vz-book-rank__metric-value{
  color:#b91c1c; /* deeper red */
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-blade .vz-book-rank__metric-value{
  color:#9f1239;
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-recommendation .vz-book-rank__metric-value{
  color:#0369a1;
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-popularity .vz-book-rank__metric-value{
  color:#0369a1;
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-fanValue .vz-book-rank__metric-value{
  color:#0ea5e9; /* deeper sky */
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-comment .vz-book-rank__metric-value{
  color:#a16207; /* deeper gold */
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-view .vz-book-rank__metric-value{
  color:#3f6485; /* deeper moon blue */
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-reader .vz-book-rank__metric-value{
  color:#1d4ed8;
}
.vz-book-rank__item:hover .vz-book-rank__metric.is-listen .vz-book-rank__metric-value,
.vz-book-rank__item:hover .vz-book-rank__metric.is-listeningNow .vz-book-rank__metric-value{
  color:#0b7f73;
}

.vz-book-rank__empty{
  grid-column:1 / -1;
  padding:1.5rem 1rem;
  color:var(--vz-br-mute);
  font-size:11px;
  text-align:center;
}


/* ── Cường Giả board: match BXH seamless shell ── */
.vz-hero-board{
  border:0 !important;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.55) 42%, rgba(248,249,251,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(248,249,251,0) 100%) !important;
  box-shadow:none !important;
}
.vz-hero-board__header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  min-height:2.55rem;
  padding:.7rem .85rem .45rem;
  border:0;
  background:transparent;
}
.vz-hero-board__header::after{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(15,23,42,.07), transparent);
}
.vz-hero-board__title-wrap{
  display:flex;
  min-width:0;
  align-items:center;
  gap:.55rem;
}
.vz-hero-board__ico{
  display:inline-flex;
  width:1.05rem;
  height:1.05rem;
  align-items:center;
  justify-content:center;
  color:#0f172a;
  opacity:.88;
}
.vz-hero-board__ico svg{
  width:16px;
  height:16px;
}
.vz-hero-board__title{
  margin:0;
  color:#0f172a;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.15;
}
.vz-hero-board__sub{
  display:block;
  margin-top:.12rem;
  color:#94a3b8;
  font-size:8.5px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1.1;
}
.vz-hero-board__count{
  flex:0 0 auto;
  color:#64748b;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.06em;
  font-variant-numeric:tabular-nums;
}
.vz-hero-board__list > .group{
  border-color:rgba(15,23,42,.04) !important;
}
.vz-hero-board__list > .group:hover{
  background:rgba(255,255,255,.35) !important;
}
