/* Ajustes editoriais da área de personagens. */

.characters-index,
.character-detail {
  padding-top: clamp(80px, 9vw, 140px);
}

.characters-index__header {
  margin-bottom: 42px;
}

.character-media-stage__sticky {
  top: 96px;
  height: auto;
  min-height: 0;
  padding: 30px 28px 72px;
}

.character-main-image {
  height: min(74vh, 820px);
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: #08070b;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

.character-main-image > .character-lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
}

.character-main-image img {
  cursor: zoom-in;
}

/* Ficha compacta: informação auxiliar, sem competir com a biografia. */
.character-facts {
  margin: 26px 0 34px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.character-facts__header {
  margin-bottom: 8px;
}

.character-facts__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #ffbd00;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.character-facts__header h3,
.character-relations h4 {
  margin: 0;
  color: #e9e6eb;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: .025em;
}

.character-facts__header h3 {
  font-size: 14px;
}

.character-facts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  margin: 0;
}

.character-fact {
  display: grid;
  grid-template-columns: minmax(82px, .72fr) minmax(0, 1.28fr);
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.character-fact__label {
  margin: 0;
  color: #8f8995;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.character-fact__value {
  min-width: 0;
  margin: 0;
  color: #dcd8df;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.character-fact__value a {
  color: #e5e1e7;
  text-decoration-color: rgba(255, 189, 0, .42);
  text-underline-offset: 2px;
}

.character-fact__value a:hover,
.character-fact__value a:focus-visible {
  color: #ffd24a;
}

.character-relations {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.character-relations h4 {
  margin-bottom: 5px;
  color: #aaa5ad;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.character-scrap .character-lightbox-trigger {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

.character-scrap img {
  cursor: zoom-in;
  transition: transform .28s ease, filter .28s ease;
}

.character-scrap .character-lightbox-trigger:hover img,
.character-scrap .character-lightbox-trigger:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.05);
}

.character-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 76px;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(10px);
}

.character-lightbox.is-open {
  display: flex;
}

.character-lightbox__figure {
  width: min(94vw, 1500px);
  max-height: 94vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.character-lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 82px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.character-lightbox__figure figcaption {
  max-width: 900px;
  color: #d6d2da;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.character-lightbox__original {
  color: #ffbd00;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-decoration: none;
}

.character-lightbox__original:hover,
.character-lightbox__original:focus-visible {
  color: #fff;
}

.character-lightbox__close,
.character-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(15, 12, 18, .78);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.character-lightbox__close:hover,
.character-lightbox__nav:hover,
.character-lightbox__close:focus-visible,
.character-lightbox__nav:focus-visible {
  border-color: rgba(255, 189, 0, .75);
  background: rgba(255, 189, 0, .12);
}

.character-lightbox__close {
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.character-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 58px;
  border-radius: 8px;
  transform: translateY(-50%);
  font-size: 38px;
  line-height: 1;
}

.character-lightbox__nav:hover,
.character-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.character-lightbox__nav--prev {
  left: 18px;
}

.character-lightbox__nav--next {
  right: 18px;
}

body.character-lightbox-open {
  overflow: hidden;
}

/* Paleta preto + amarelo para substituir os antigos acentos rosa da área. */
.character-card:hover {
  border-color: rgba(255, 189, 0, .55);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .34), 0 0 30px rgba(255, 189, 0, .10);
}
.character-card__number,
.character-card__link span,
.character-detail__brand,
.character-editorial-header h2,
.character-news__eyebrow,
.character-news__arrow {
  color: #ffbd00 !important;
}
.character-editorial-header h2 {
  border-left-color: #ffbd00 !important;
}
.character-switch:hover,
.character-switch--active {
  border-color: rgba(255, 189, 0, .62) !important;
  background: rgba(255, 189, 0, .08) !important;
}
.character-news {
  border-color: rgba(255, 189, 0, .20) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)), #0b0b0d !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.character-news__pulse {
  background: #ffbd00 !important;
  box-shadow: 0 0 12px rgba(255, 189, 0, .52) !important;
}
.character-news__entry {
  background: rgba(255,255,255,.022) !important;
}
.character-news__entry:hover {
  border-color: rgba(255, 189, 0, .30) !important;
  background: rgba(255, 189, 0, .045) !important;
}

@media (max-width: 1050px) {
  .characters-index,
  .character-detail {
    padding-top: 72px;
  }
}

@media (max-width: 820px) {
  .character-media-stage__sticky {
    position: relative;
    top: 0;
    height: min(72vh, 760px);
    min-height: 520px;
    padding: 0;
  }

  .character-main-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .character-lightbox {
    padding: 58px 16px 24px;
  }

  .character-lightbox__figure {
    width: 100%;
  }

  .character-lightbox__figure img {
    max-height: calc(88vh - 90px);
  }

  .character-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .character-lightbox__nav:hover,
  .character-lightbox__nav:focus-visible {
    transform: scale(1.04);
  }

  .character-lightbox__nav--prev {
    left: 16px;
  }

  .character-lightbox__nav--next {
    right: 16px;
  }
}

@media (max-width: 640px) {
  .character-facts__grid {
    grid-template-columns: 1fr;
  }

  .character-fact {
    grid-template-columns: minmax(92px, .75fr) minmax(0, 1.25fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .character-scrap img,
  .character-lightbox__close,
  .character-lightbox__nav {
    transition: none;
  }
}
