/* ═══ AceToon — manga detail page (loads AFTER home.css) ═══
   Extraído del preview Nuevo_theme_acetoon/manga.html.
   Todo lo que ya vive en home.css (reset, vars, .card, .htag, .btn-*, .sec,
   .sb-widget, .skel, .ch-new, .dot …) NO se repite aquí. */

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* touch targets for chrome icons */
.nav-btn {
  width: 44px;
  height: 44px;
}

.lang-btn {
  min-height: 44px;
}

/* ── HERO ── */
.mhero {
  position: relative;
  margin-top: var(--nav-h);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.mhero-bg {
  position: absolute;
  inset: -30px;
  background: center 20%/cover no-repeat var(--bg3);
  filter: blur(22px) brightness(.42);
  transform: scale(1.1);
}

.mhero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--veil), .55) 0%, rgba(var(--veil), .78) 55%, var(--bg) 100%);
}

/* SIGNATURE — reader progress marker, giant Bebas stroke */
.mhero-ch {
  position: absolute;
  right: -8px;
  bottom: 4px;
  z-index: 1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  line-height: .85;
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  opacity: .28;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.mhero-ch small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--green);
  -webkit-text-stroke: 0;
  text-align: right;
  padding-right: 14px;
}

.mhero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 28px 18px 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.mhero-cover {
  width: 168px;
  height: 252px;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  background: var(--bg3);
}

.mhero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 46px;
  line-height: .95;
  letter-spacing: 2px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .7);
}

.mhero-alt {
  font-size: 12px;
  color: var(--grey);
  margin-top: 6px;
}

.mhero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--grey);
  margin-top: 12px;
}

.mhero-meta .score {
  color: var(--gold);
  font-weight: 700;
}

.mhero-meta .ongoing {
  color: var(--green);
  font-weight: 700;
}

.mhero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

a.htag {
  transition: border-color .15s, color .15s;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  position: relative;
}

/* invisible hit-area extension → ≥44px touch target without inflating the chip */
a.htag::after {
  content: '';
  position: absolute;
  inset: -9px 0;
}

a.htag:hover,
a.htag:focus-visible {
  border-color: var(--green);
  color: var(--white);
}

.mhero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.mhero-ctas .btn-primary,
.mhero-ctas .btn-outline {
  min-height: 46px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(var(--ghost), .07);
  border: 1px solid rgba(var(--ghost), .13);
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s, background .15s;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--green);
  color: var(--white);
}

.icon-btn.on {
  color: var(--green);
  border-color: var(--green-md);
  background: var(--green-lo);
}

.icon-btn.on svg {
  fill: var(--green);
  stroke: var(--green);
}

.icon-btn.busy {
  opacity: .5;
  pointer-events: none;
}

/* share dropdown */
.share-wrap {
  position: relative;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 178px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}

.share-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Menú movido al <body> por el JS: coordenadas fijas y por encima de todo
   (el hero lo recortaba con su overflow:hidden). 320 = sobre el topnav. */
.share-menu.portal {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 320;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}

.share-menu a,
.share-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background .12s;
}

.share-menu a:hover,
.share-menu button:hover,
.share-menu a:focus-visible,
.share-menu button:focus-visible {
  background: rgba(var(--ghost), .07);
}

.share-menu svg {
  width: 15px;
  height: 15px;
  stroke: var(--grey);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.share-menu .x-ico {
  fill: var(--grey);
  stroke: none;
}

.share-menu .menu-empty {
  display: block;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--grey);
}

/* ── estado de lectura (pill + menú) ── */
.state-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(var(--ghost), .07);
  border: 1px solid rgba(var(--ghost), .13);
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.state-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.state-btn .chev {
  width: 12px;
  height: 12px;
}

.state-btn:hover,
.state-btn:focus-visible {
  border-color: var(--green);
  color: var(--white);
}

/* con estado activo el pill toma el color del estado (--gh) */
.state-btn.on {
  color: hsl(var(--gh, 130), 70%, 62%);
  border-color: hsla(var(--gh, 130), 70%, 55%, .45);
  background: hsla(var(--gh, 130), 70%, 50%, .12);
}

html[data-theme="light"] .state-btn.on {
  color: hsl(var(--gh, 130), 62%, 30%);
  border-color: hsla(var(--gh, 130), 55%, 38%, .4);
  background: hsla(var(--gh, 130), 62%, 45%, .1);
}

.state-btn.busy {
  opacity: .5;
  pointer-events: none;
}

.state-menu {
  left: 0;
  right: auto;
  min-width: 200px;
}

.state-menu .st-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: hsl(var(--gh, 130), 70%, 55%);
}

.state-menu .st-check {
  margin-left: auto;
  width: 13px;
  height: 13px;
  stroke: hsl(var(--gh, 130), 70%, 60%);
  opacity: 0;
}

.state-menu button.sel {
  color: hsl(var(--gh, 130), 70%, 66%);
}

html[data-theme="light"] .state-menu button.sel {
  color: hsl(var(--gh, 130), 62%, 30%);
}

.state-menu button.sel .st-check {
  opacity: 1;
}

/* ── menú de listas (checkbox por lista + crear) ── */
.list-menu {
  min-width: 230px;
}

.list-menu .li-box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}

.list-menu .li-box svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  opacity: 0;
}

.list-menu button.in .li-box {
  background: var(--green);
  border-color: var(--green);
}

.list-menu button.in .li-box svg {
  opacity: 1;
}

.list-menu .li-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* "Crear lista" dentro del menú: abre el modal */
.list-new-open {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 12px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0 0 7px 7px;
  color: var(--green);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  transition: background .12s;
}

.list-new-open:hover {
  background: var(--green-lo);
}

.list-new-open .li-plus {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-new-open svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Modal de lista nueva (reusa el velo/caja del modal de reporte) */
.nl-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
}

.nl-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-lo);
}

.nl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--grey);
  cursor: pointer;
}

.nl-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.nl-hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* favorito activo en rojo/rosa, no verde */
.icon-btn.fav.on {
  color: #ff5d73;
  border-color: rgba(255, 93, 115, .5);
  background: rgba(255, 93, 115, .12);
}

.icon-btn.fav.on svg {
  fill: #ff5d73;
  stroke: #ff5d73;
}

/* ── SYNOPSIS ── */
.syn {
  padding: 0 18px;
}

.syn-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.syn-text.open {
  display: block;
  -webkit-line-clamp: unset;
}

.syn-more {
  background: none;
  border: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.syn-more:hover {
  opacity: .8;
}

.syn-more svg {
  width: 13px;
  height: 13px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}

.syn-more.open svg {
  transform: rotate(180deg);
}

.syn-credits {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.8;
}

.syn-credits b {
  color: var(--grey);
  font-weight: 700;
}

/* ── COMMUNITY STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px;
  margin-top: 20px;
}

.stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 8px;
  text-align: center;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--grey);
}

/* ── RATING / VOTE BAR ── */
.vote {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 18px;
  margin-top: 14px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  transition: border-color .15s, color .15s, background .15s;
}

.vote-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote-btn:hover,
.vote-btn:focus-visible {
  border-color: var(--green);
  color: var(--white);
}

.vote-btn.on {
  color: var(--green);
  border-color: var(--green-md);
  background: var(--green-lo);
}

.vote-bar {
  flex: 1;
  min-width: 140px;
  height: 6px;
  border-radius: 3px;
  background: var(--bg4);
  overflow: hidden;
}

.vote-fill {
  height: 100%;
  background: var(--green);
  transition: width .35s ease;
}

.vote-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
  white-space: nowrap;
}

/* ── CHAPTER LIST ── */
.ch-tools {
  display: flex;
  gap: 8px;
  padding: 0 18px;
  margin-bottom: 12px;
}

.ch-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  height: 44px;
  transition: border-color .2s, box-shadow .2s;
}

.ch-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-lo);
}

.ch-search svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}

.ch-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
}

.ch-search input::placeholder {
  color: var(--muted);
}

.ch-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: border-color .15s, color .15s;
}

.ch-sort:hover,
.ch-sort:focus-visible {
  border-color: var(--green);
  color: var(--white);
}

.ch-sort svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
}

.chrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 12px;
  min-height: 62px;
  transition: border-color .15s, background .15s;
}

.chrow:hover,
.chrow:focus-visible {
  border-color: var(--green);
  background: var(--bg3);
}

.chrow-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--grey);
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.chrow.cur .chrow-num {
  color: var(--green);
}

.chrow-thumb {
  width: 38px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}

.chrow-info {
  flex: 1;
  min-width: 0;
}

.chrow-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.chrow-date {
  font-size: 10px;
  color: var(--grey);
}

.chrow-check {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.chrow.cur {
  border-color: var(--green-md);
  background: var(--green-lo);
}

.chrow-reading {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .8px;
  color: var(--green);
  border: 1px solid var(--green-md);
  border-radius: 3px;
  padding: 2px 5px;
  flex-shrink: 0;
}

.ch-divider {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 6px 0;
  user-select: none;
}

.ch-empty {
  display: none;
  text-align: center;
  padding: 28px 18px;
  color: var(--grey);
  font-size: 12px;
}

.ch-empty strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
}

.ch-more {
  display: block;
  margin: 14px 18px 0;
  width: calc(100% - 36px);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--grey);
  border-radius: 9px;
  padding: 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color .15s, color .15s;
}

.ch-more:hover,
.ch-more:focus-visible {
  border-color: var(--green);
  color: var(--white);
}

.ch-more[disabled] {
  opacity: .5;
  pointer-events: none;
}

.hidden-ch {
  display: none;
}

/* ── COMMENTS ── */
.cmt-join {
  margin: 0 18px 14px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cmt-join p {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
}

.cmt-join .btn-primary {
  min-height: 44px;
  flex-shrink: 0;
}

.cmt-form {
  margin: 0 18px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}

.cmt-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.cmt-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-lo);
}

.cmt-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cmt-form-note {
  font-size: 10px;
  color: var(--muted);
}

.cmt-form .btn-primary {
  min-height: 44px;
}

.cmt {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.cmt:last-of-type {
  border-bottom: none;
}

.cmt-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.ava-a {
  background: var(--green-lo);
  color: var(--green);
  border: 1px solid var(--green-md);
}

.ava-b {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .16);
}

.ava-c {
  background: var(--bg4);
  color: var(--grey);
  border: 1px solid var(--border);
}

.cmt-body {
  flex: 1;
  min-width: 0;
}

.cmt-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.cmt-name {
  font-size: 12px;
  font-weight: 800;
}

.cmt-time {
  font-size: 10px;
  color: var(--grey);
}

.cmt-text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.cmt-acts {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.cmt-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 11px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  transition: color .12s, background .12s;
}

.cmt-act:hover,
.cmt-act:focus-visible {
  color: var(--green);
  background: var(--green-lo);
}

.cmt-act.on {
  color: var(--green);
}

.cmt-act svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cmt-replies {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmt-reply {
  display: flex;
  gap: 10px;
}

.cmt-reply .cmt-ava {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.cmt-empty {
  padding: 8px 18px 24px;
  font-size: 12px;
  color: var(--grey);
}

/* ── REPORT ── */
.rep-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 18px 0;
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  transition: color .15s;
}

.rep-open:hover,
.rep-open:focus-visible {
  color: var(--white);
}

.rep-open svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rep-veil {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .68);
}

.rep-veil.open {
  display: flex;
}

.rep-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.rep-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.rep-box select,
.rep-box textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
}

.rep-box textarea {
  min-height: 84px;
  resize: vertical;
}

.rep-acts {
  display: flex;
  gap: 8px;
}

.rep-acts button {
  flex: 1;
  min-height: 44px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.rep-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey);
}

.rep-cancel:hover {
  color: var(--white);
  border-color: var(--green);
}

/* ── TOAST ── */
.ace-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + 16px);
  z-index: 900;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg3);
  border: 1px solid var(--green-md);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.ace-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── SIDEBAR extras ── */
.sb-grid {
  display: grid;
  /* minmax(0,1fr): con 1fr a secas una imagen con ancho intrínseco grande
     agranda su columna y la 2ª tarjeta se sale del sidebar (se veía cortada) */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sb-grid .card {
  width: auto;
  min-width: 0;
}

.sb-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}

.sb-list-item:last-child {
  border-bottom: none;
}

.sb-list-item:hover {
  opacity: .75;
}

.sb-list-thumbs {
  display: flex;
  flex-shrink: 0;
}

.sb-list-thumbs img {
  width: 26px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--bg);
  background: var(--bg3);
}

.sb-list-thumbs img+img {
  margin-left: -10px;
}

.sb-list-info {
  flex: 1;
  min-width: 0;
}

.sb-list-name {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sb-list-meta {
  font-size: 9px;
  color: var(--grey);
}

/* autores/artistas clicables en SERIES INFO */
.sb-person {
  color: var(--green);
  font-weight: 600;
  transition: opacity .15s;
}

.sb-person:hover {
  opacity: .75;
  text-decoration: underline;
}

/* En la ficha el sidebar es largo (9 cards + series info + trackers): el
   sticky con max-height de home.css lo recortaba a 100vh con un scroll
   interno de 3px casi invisible ("se ve cortado"). Aquí fluye completo. */
@media (min-width:900px) {
  .page-wrap > .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* ── responsive ── */
@media (min-width:640px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 640px;
  }

  .mhero-ch {
    font-size: 170px;
  }
}

@media (min-width:900px) {
  .mhero-inner {
    flex-direction: row;
    text-align: left;
    align-items: flex-end;
    gap: 34px;
    padding: 60px 48px 44px;
  }

  .mhero-cover {
    width: 220px;
    height: 330px;
  }

  .mhero-meta,
  .mhero-tags,
  .mhero-ctas {
    justify-content: flex-start;
  }

  .mhero-title {
    font-size: 64px;
  }

  .mhero-ch {
    font-size: 230px;
    right: 10px;
    bottom: -6px;
  }

  .syn,
  .ch-tools,
  .ch-list,
  .vote {
    padding-left: 48px;
    padding-right: 48px;
  }

  .ch-more {
    margin: 14px 48px 0;
    width: calc(100% - 96px);
  }

  .cmt {
    padding: 14px 48px;
  }

  .cmt-join,
  .cmt-form {
    margin: 0 48px 14px;
  }

  .cmt-empty {
    padding-left: 48px;
    padding-right: 48px;
  }

  .rep-open {
    margin-left: 48px;
  }

  .stats {
    padding: 0 48px;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 220px));
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Trackers (AniList / MAL) ── */
.trk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trk-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg3);
  color: var(--grey);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .18s, color .18s;
}

.trk-link:hover {
  border-color: var(--green);
  color: var(--green);
}
