/* AUREA Portal — /manga (official manga reader).
   Page-specific styles only; shell, cards (.rw-card) and pills
   (.new-pill / .cs-pill) come from styles.css / soon-banner.css. */

.mg-ep-title {
  margin: 18px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #E9DFFF;
  letter-spacing: .01em;
}

/* Manga content language switcher (independent of the site UI language). */
.mg-langbar {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mg-langbar svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted, #A7ACC2);
}
.mg-lang-select {
  min-width: 180px;
}

/* Vertical-scroll reader: full-width pages, phone friendly. */
.mg-reader {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mg-page {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, .45);
  background: linear-gradient(170deg, rgba(23, 28, 51, .92), rgba(10, 15, 30, .94));
  box-shadow:
    0 0 0 1px rgba(138, 43, 226, .22),
    0 0 18px rgba(255, 215, 0, .10),
    0 10px 30px rgba(0, 0, 0, .35);
}
.mg-page img {
  display: block;
  width: 100%;
  height: auto;
}
.mg-page figcaption {
  padding: 8px 14px;
  text-align: right;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted, #A7ACC2);
}

/* Anime adaptation announcement promo (below the hero carousel). */
.mg-anime {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, .55);
  background: linear-gradient(170deg, rgba(23, 28, 51, .92), rgba(10, 15, 30, .94));
  box-shadow:
    0 0 0 1px rgba(138, 43, 226, .30),
    0 0 26px rgba(255, 215, 0, .16),
    0 12px 34px rgba(0, 0, 0, .4);
}
.mg-anime-img {
  display: block;
  width: 100%;
  height: auto;
}
.mg-anime-body {
  padding: 20px 24px 24px;
}
.mg-anime-title {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .01em;
  background: linear-gradient(92deg, #FFE97A 0%, #FFD700 45%, #F5A623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFD700;
}
.mg-anime-title .cs-pill {
  -webkit-text-fill-color: #FFD700;
  vertical-align: middle;
}
.mg-anime-body p { margin-bottom: 0; }

/* Teaser video sits beside the announcement copy (stacks on phones). */
.mg-anime-flex {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.mg-anime-text {
  flex: 1 1 auto;
  min-width: 0;
}
.mg-anime-video {
  margin: 0;
  flex: 0 0 232px;
}
.mg-anime-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, .5);
  background: #000;
  box-shadow: 0 0 18px rgba(138, 43, 226, .25), 0 8px 22px rgba(0, 0, 0, .35);
}
.mg-anime-video figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--muted, #A7ACC2);
}

@media (max-width: 700px) {
  .mg-anime-flex {
    flex-direction: column;
    align-items: center;
  }
  .mg-anime-text { align-self: stretch; }
  .mg-anime-video {
    flex: none;
    width: min(250px, 78vw);
  }
}

@media (max-width: 560px) {
  .mg-anime-body { padding: 16px 16px 20px; }
}

/* Official videos gallery (teaser + coming-soon placeholder). */
.mg-video-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
}
.mg-video-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, .45);
  background: linear-gradient(170deg, rgba(23, 28, 51, .92), rgba(10, 15, 30, .94));
  box-shadow:
    0 0 0 1px rgba(138, 43, 226, .22),
    0 0 18px rgba(255, 215, 0, .10),
    0 10px 30px rgba(0, 0, 0, .35);
}
.mg-video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.mg-video-card figcaption {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mg-video-name {
  font-weight: 800;
  color: #E9DFFF;
}
.mg-video-cap {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted, #A7ACC2);
}
.mg-video-soon {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mg-video-soon-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #E9DFFF;
}
.mg-video-soon p { margin-bottom: 0; }

@media (max-width: 700px) {
  .mg-video-grid { grid-template-columns: 1fr; }
  .mg-video-card video { max-height: 520px; object-fit: contain; }
  .mg-video-soon { padding: 18px 16px; }
}

/* "Next up" related navigation below the reader / PDF card. */
.mg-rel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.mg-rel-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(255, 215, 0, .40);
  background: linear-gradient(170deg, rgba(23, 28, 51, .92), rgba(10, 15, 30, .94));
  box-shadow:
    0 0 0 1px rgba(138, 43, 226, .20),
    0 8px 24px rgba(0, 0, 0, .32);
  transition: border-color .18s ease, transform .18s ease;
}
.mg-rel-card:hover, .mg-rel-card:focus-visible {
  border-color: rgba(255, 215, 0, .85);
  transform: translateY(-2px);
}
.mg-rel-card img {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, .35);
}
.mg-rel-text { min-width: 0; }
.mg-rel-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #FFD700;
}
.mg-rel-name {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: #E9DFFF;
}
.mg-rel-sub {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted, #A7ACC2);
}

@media (max-width: 700px) {
  .mg-rel-grid { grid-template-columns: 1fr; }
}

/* Episode 2 teaser block. */
.mg-next {
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid #39415F;
  background: linear-gradient(170deg, rgba(23, 28, 51, .92), rgba(10, 15, 30, .94));
  box-shadow: 0 0 0 1px rgba(255, 215, 0, .10), 0 10px 30px rgba(0, 0, 0, .35);
}
.mg-next .section-title { margin-top: 0; }
.mg-next p { margin-bottom: 0; }

@media (max-width: 560px) {
  .mg-reader { gap: 16px; }
  .mg-next { padding: 18px 16px; }
}
