.portal-section-page {
  min-height: 70vh;
  padding: calc(var(--navbar-fixed-space, 112px) + 34px) 0 90px;
  background: #050408;
  color: #fff;
}

.portal-section-container {
  max-width: 1240px;
}

.portal-section-header {
  max-width: 860px;
  margin-bottom: 42px;
}

.portal-section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--pink, #e83a8e);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portal-section-header h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .94;
  letter-spacing: -.04em;
}

.portal-section-header p {
  max-width: 760px;
  margin: 0;
  color: #bdb7c5;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.portal-overview {
  margin-bottom: 72px;
}

.portal-overview__lead {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.portal-overview__label {
  color: #ff74b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.portal-overview__lead p {
  max-width: 880px;
  margin: 0;
  color: #e6e1e9;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.62;
}

.portal-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.portal-pillar {
  min-height: 238px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}

.portal-pillar__number {
  display: block;
  margin-bottom: 40px;
  color: #ff4fa3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.portal-pillar h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.08;
}

.portal-pillar p {
  margin: 0;
  color: #aaa4b1;
  font-size: 15px;
  line-height: 1.65;
}

.portal-published,
.portal-related-news,
.portal-related-content {
  margin-top: 72px;
}

.portal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.portal-section-heading span {
  display: block;
  margin-bottom: 7px;
  color: #ff74b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.portal-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.portal-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portal-content-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: #0b0910;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.portal-content-card:hover,
.portal-content-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(232, 58, 142, .5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.portal-content-card--featured {
  grid-column: span 2;
}

.portal-content-card__link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.portal-content-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #121017;
}

.portal-content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.portal-content-card:hover .portal-content-card__media img {
  transform: scale(1.035);
}

.portal-content-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 4, 8, .58), transparent 60%);
  pointer-events: none;
}

.portal-content-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.portal-content-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #8f8996;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.portal-content-card__meta span {
  color: #ff74b7;
}

.portal-content-card h3 {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  font-size: clamp(23px, 2.7vw, 31px);
  line-height: 1.07;
}

.portal-content-card p {
  margin: 0 0 24px;
  color: #aaa4b1;
  font-size: 15px;
  line-height: 1.65;
}

.portal-content-card__action {
  margin-top: auto;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.portal-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portal-news-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #0b0910;
}

.portal-news-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portal-news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.portal-news-card__body {
  padding: 20px;
}

.portal-news-card__body > span {
  color: #ff74b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.portal-news-card h3 {
  margin: 9px 0 10px;
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.12;
}

.portal-news-card p {
  margin: 0;
  color: #9f99a6;
  font-size: 14px;
  line-height: 1.55;
}

.portal-detail-page {
  min-height: 70vh;
  padding: calc(var(--navbar-fixed-space, 112px) + 34px) 0 100px;
  background: #050408;
  color: #fff;
}

.portal-detail-container {
  max-width: 1180px;
}

.portal-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 34px;
  color: #8f8996;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.portal-breadcrumb a {
  color: #c7c1cc;
}

.portal-detail-header {
  max-width: 940px;
  margin-bottom: 38px;
}

.portal-detail-header h1 {
  margin: 0 0 20px;
  overflow-wrap: anywhere;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.04em;
}

.portal-detail-header > p {
  max-width: 820px;
  margin: 0;
  color: #c0bac7;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.portal-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  color: #918a99;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.portal-detail-cover {
  margin: 0 0 46px;
}

.portal-detail-cover img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 18px;
}

.portal-detail-cover figcaption {
  margin-top: 10px;
  color: #8f8996;
  font-size: 12px;
}

.portal-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 54px;
  align-items: start;
}

.portal-detail-content {
  min-width: 0;
  color: #e0dce4;
  font-size: 18px;
  line-height: 1.82;
}

.portal-detail-content p {
  margin: 0 0 24px;
}

.portal-detail-side {
  position: sticky;
  top: calc(var(--navbar-fixed-space, 112px) + 20px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.portal-detail-side__label {
  display: block;
  margin-bottom: 8px;
  color: #ff74b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.portal-detail-side strong {
  display: block;
  margin-bottom: 12px;
  font-size: 25px;
}

.portal-detail-side p {
  margin: 0 0 20px;
  color: #9f99a6;
  font-size: 14px;
  line-height: 1.6;
}

.portal-source-box {
  margin-top: 42px;
  padding: 22px;
  border-left: 3px solid #ff4fa3;
  background: rgba(255, 255, 255, .035);
}

.portal-source-box span {
  display: block;
  margin-bottom: 8px;
  color: #ff74b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.portal-source-box a,
.portal-source-box strong {
  color: #fff;
  overflow-wrap: anywhere;
}

/* Mantidos para a tela vazia de Personagens enquanto não houver registros. */
.portal-development {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.portal-development::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  top: -110px;
  right: -80px;
  border-radius: 50%;
  background: rgba(232, 58, 142, .12);
  filter: blur(18px);
  pointer-events: none;
}

.portal-development-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(232, 58, 142, .38);
  border-radius: 999px;
  background: rgba(232, 58, 142, .1);
  color: #ff74b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.portal-development h2 {
  max-width: 720px;
  margin: 22px 0 12px;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.1;
}

.portal-development p {
  max-width: 680px;
  margin: 0;
  color: #aaa4b1;
  font-size: 16px;
  line-height: 1.7;
}

.portal-development-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.portal-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pink, #e83a8e);
  border-radius: 999px;
  background: var(--pink, #e83a8e);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.portal-section-button:hover,
.portal-section-button:focus-visible {
  transform: translateY(-2px);
}

.portal-section-button--secondary {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
}

@media (max-width: 900px) {
  .portal-pillars,
  .portal-content-grid,
  .portal-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-content-card--featured {
    grid-column: span 1;
  }

  .portal-detail-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portal-detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .portal-section-page,
  .portal-detail-page {
    padding-top: calc(var(--navbar-fixed-space, 86px) + 26px);
    padding-bottom: 64px;
  }

  .portal-section-header {
    margin-bottom: 28px;
  }

  .portal-overview__lead {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portal-pillars,
  .portal-content-grid,
  .portal-news-grid {
    grid-template-columns: 1fr;
  }

  .portal-pillar {
    min-height: 0;
  }

  .portal-pillar__number {
    margin-bottom: 22px;
  }

  .portal-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-section-heading .portal-section-button {
    width: auto;
  }

  .portal-development {
    border-radius: 18px;
  }

  .portal-development-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-section-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-content-card,
  .portal-content-card__media img,
  .portal-section-button {
    transition: none;
  }
}
