/* Character detail — editorial profile layout */

.member-detail-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #372e42;
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--member-color, #b985e8) 18%, transparent), transparent 34%),
    radial-gradient(circle at 8% 48%, rgba(223, 195, 247, 0.2), transparent 30%),
    linear-gradient(180deg, #fbf9fd 0%, #f7f2fb 58%, #fcfafd 100%);
}

.member-detail-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 34px 0 96px;
}

.member-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.member-detail-back,
.member-detail-generation {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(119, 87, 143, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(76, 51, 94, 0.06);
  backdrop-filter: blur(14px);
}

.member-detail-back {
  gap: 9px;
  padding: 0 16px;
  color: #62566d;
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.member-detail-back:hover,
.member-detail-back:focus-visible {
  color: var(--member-color, #a66ed1);
  border-color: color-mix(in srgb, var(--member-color, #b985e8) 38%, white);
  transform: translateX(-3px);
}

.member-detail-generation {
  padding: 0 15px;
  color: color-mix(in srgb, var(--member-color, #b985e8) 72%, #51445b);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.member-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(111, 81, 133, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.76) 48%, rgba(255, 255, 255, 0.34) 100%),
    color-mix(in srgb, var(--member-color, #b985e8) 10%, white);
  box-shadow:
    0 28px 80px rgba(73, 47, 93, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.member-detail-copy {
  position: relative;
  z-index: 3;
  padding: clamp(44px, 6vw, 78px);
}

.member-detail-eyebrow,
.member-detail-section-kicker {
  color: color-mix(in srgb, var(--member-color, #b985e8) 78%, #5c496a);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.member-detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.member-detail-spark {
  position: relative;
  width: 14px;
  height: 14px;
}

.member-detail-spark::before,
.member-detail-spark::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: var(--member-color, #b985e8);
}

.member-detail-spark::before {
  width: 3px;
  height: 14px;
}

.member-detail-spark::after {
  width: 14px;
  height: 3px;
}

.member-detail-romanized {
  margin: 0 0 7px;
  color: #887c91;
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.member-detail-copy h1 {
  margin: 0;
  color: #302638;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(4.2rem, 7.4vw, 7.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.member-detail-kana {
  margin: 17px 0 0;
  color: color-mix(in srgb, var(--member-color, #b985e8) 68%, #65566f);
  font-size: 0.86rem;
  letter-spacing: 0.13em;
}

.member-detail-lead {
  max-width: 520px;
  margin: 34px 0 0;
  color: #62586a;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.95;
}

.member-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(112, 82, 132, 0.11);
  border-radius: 18px;
  background: rgba(116, 86, 137, 0.09);
}

.member-detail-facts > div {
  min-width: 0;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.78);
}

.member-detail-facts dt {
  margin-bottom: 4px;
  color: #978c9d;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.member-detail-facts dd {
  margin: 0;
  overflow: hidden;
  color: #44394d;
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail-facts .member-detail-color-fact {
  grid-column: 1 / -1;
}

.member-detail-color-fact dd {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.member-detail-color-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.member-detail-color-label strong {
  color: #44394d;
  font-size: 0.86rem;
}

.member-detail-color-label small {
  overflow: hidden;
  color: #94889a;
  font-size: 0.66rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail-color-swatch {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--member-color, #b985e8);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--member-color, #b985e8) 26%, #d6cbdc),
    0 5px 12px color-mix(in srgb, var(--member-color, #b985e8) 22%, transparent);
}

.member-detail-color-fact code {
  margin-left: auto;
  color: var(--member-color, #b985e8);
  font-family: 'Quicksand', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.member-detail-visuals {
  position: relative;
  align-self: stretch;
  min-height: 680px;
  isolation: isolate;
}

.member-detail-visuals::before {
  content: '';
  position: absolute;
  inset: 5% -12% -18% 2%;
  z-index: -2;
  border-radius: 50% 0 0 0;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(145deg, color-mix(in srgb, var(--member-color, #b985e8) 34%, white), color-mix(in srgb, var(--member-color, #b985e8) 14%, white));
  transform: rotate(-5deg);
}

.member-detail-visual-halo {
  position: absolute;
  top: 13%;
  left: 20%;
  width: 330px;
  aspect-ratio: 1;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--member-color, #b985e8) 30%, white);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px color-mix(in srgb, var(--member-color, #b985e8) 7%, transparent),
    0 0 0 72px color-mix(in srgb, var(--member-color, #b985e8) 4%, transparent);
}

.member-detail-portrait {
  margin: 0;
}

.member-detail-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 360ms ease;
}

.member-detail-portrait img.is-loaded {
  opacity: 1;
}

.member-detail-portrait--character {
  position: absolute;
  inset: 18px 118px 0 0;
  z-index: 2;
}

.member-detail-portrait--character img {
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 24px rgba(58, 40, 70, 0.16));
}

.member-detail-portrait--character > .image-loading-indicator {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.member-detail-portrait--character > .image-loading-indicator::before {
  display: none;
}

.member-detail-portrait--character figcaption {
  display: none;
}

.member-detail-portrait--cast {
  position: absolute;
  right: 28px;
  bottom: 30px;
  z-index: 4;
  width: clamp(170px, 17vw, 222px);
  aspect-ratio: 0.78;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background: #f2eaf7;
  box-shadow: 0 24px 44px rgba(54, 36, 67, 0.2);
  transform: rotate(2.5deg);
}

.member-detail-portrait--cast img {
  object-position: center top;
}

.member-detail-portrait--cast figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #4e4058;
  background: rgba(255, 255, 255, 0.86);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  backdrop-filter: blur(8px);
}

.member-detail-cast-switch {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(170px, calc(100% - 20px));
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(51, 34, 62, 0.14);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.member-detail-portrait--cast:hover .member-detail-cast-switch,
.member-detail-portrait--cast:focus-within .member-detail-cast-switch {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.member-detail-cast-switch button {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #746779;
  background: transparent;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.58rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.member-detail-cast-switch button.is-active {
  color: var(--member-ink, white);
  background: var(--member-color, #b985e8);
}

.member-detail-cast-switch button:focus-visible {
  outline: 2px solid white;
  outline-offset: 1px;
}

.member-detail-name-mark {
  position: absolute;
  top: 46px;
  right: 34px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.48);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(7rem, 13vw, 12rem);
  line-height: 1;
}

.member-detail-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 20px;
  margin-top: 22px;
}

.member-detail-profile-copy,
.member-detail-cast-card {
  border: 1px solid rgba(111, 81, 133, 0.11);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 52px rgba(73, 47, 93, 0.07);
  backdrop-filter: blur(14px);
}

.member-detail-profile-copy {
  padding: 38px 42px;
}

.member-detail-profile h2,
.member-detail-sources h2,
.member-detail-others h2 {
  margin: 8px 0 0;
  color: #3a3042;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
}

.member-detail-profile-copy > p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #6a6071;
  font-size: 0.96rem;
  line-height: 1.95;
}

.member-detail-cast-card {
  padding: 32px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--member-color, #b985e8) 9%, white));
}

.member-detail-cast-name {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
}

.member-detail-cast-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 18px;
  color: white;
  background: var(--member-color, #b985e8);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--member-color, #b985e8) 24%, transparent);
}

.member-detail-cast-name h3 {
  margin: 0;
  color: #3c3145;
  font-size: 1.08rem;
}

.member-detail-cast-name p,
.member-detail-cast-card > p {
  margin: 3px 0 0;
  color: #887e8e;
  font-size: 0.78rem;
}

.member-detail-cast-card > p {
  margin-top: 22px;
  line-height: 1.75;
}

.member-detail-sources {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 38px;
  align-items: center;
  margin-top: 22px;
  padding: 40px 42px;
  overflow: hidden;
  border-radius: 28px;
  color: #40344c;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--member-color, #b985e8) 28%, white) 0%,
      #f1eafb 56%,
      #e8ddf6 100%
    );
  box-shadow: 0 22px 60px rgba(98, 70, 126, 0.12);
}

.member-detail-sources .member-detail-section-kicker {
  color: #8669a0;
}

.member-detail-sources h2 {
  color: #443650;
}

.member-detail-sources-heading p {
  max-width: 430px;
  margin: 14px 0 0;
  color: #75677f;
  line-height: 1.75;
}

.member-detail-source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-detail-source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid rgba(126, 94, 151, 0.14);
  border-radius: 20px;
  color: #443650;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.member-detail-source-link:hover,
.member-detail-source-link:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--member-color, #b985e8) 34%, #bca4d0);
  background: rgba(255, 255, 255, 0.7);
}

.member-detail-source-link span:first-child {
  min-width: 0;
}

.member-detail-source-link small,
.member-detail-source-link strong {
  display: block;
}

.member-detail-source-link small {
  margin-bottom: 5px;
  color: #8c789b;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.member-detail-source-link strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail-source-arrow {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.member-detail-others {
  margin-top: 70px;
}

.member-detail-others .member-detail-section-kicker {
  color: var(--eyebrow, #9b68c3);
}

.member-detail-others-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.member-detail-others-heading > a {
  color: #796c82;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.member-detail-other-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.member-detail-other-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 112px;
  padding: 8px 28px 8px 8px;
  border: 1px solid rgba(111, 81, 133, 0.1);
  border-radius: 18px;
  color: #473b50;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(73, 47, 93, 0.055);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.member-detail-other-card:hover,
.member-detail-other-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--other-color, #b985e8) 36%, white);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--other-color, #b985e8) 12%, rgba(70, 42, 90, 0.1));
}

.member-detail-other-media {
  position: relative;
  display: grid;
  width: 72px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: color-mix(in srgb, var(--other-color, #b985e8) 58%, #5f4d6c);
  background:
    radial-gradient(circle at 26% 12%, rgba(255, 255, 255, 0.88), transparent 42%),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--other-color, #b985e8) 23%, #f8f4fc),
      color-mix(in srgb, var(--other-color, #b985e8) 16%, #eee6f7)
    );
  box-shadow: inset 0 0 0 1px rgba(124, 91, 148, 0.055);
}

.member-detail-other-media img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center top;
  transition: opacity 280ms ease;
}

.member-detail-other-media img.is-loaded {
  opacity: 1;
}

.member-detail-other-copy {
  display: block;
  min-width: 0;
}

.member-detail-other-copy strong,
.member-detail-other-copy small,
.member-detail-other-copy span,
.member-detail-other-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail-other-copy small {
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--other-color, #b985e8) 68%, #5c4a68);
  background: color-mix(in srgb, var(--other-color, #b985e8) 12%, white);
  font-size: 0.56rem;
  font-weight: 750;
}

.member-detail-other-copy strong {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.member-detail-other-copy span {
  margin-top: 3px;
  color: #928797;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-detail-other-copy em {
  margin-top: 8px;
  color: #776a7e;
  font-size: 0.62rem;
  font-style: normal;
}

.member-detail-other-arrow {
  position: absolute;
  top: 11px;
  right: 11px;
  color: color-mix(in srgb, var(--other-color, #b985e8) 68%, #7a6b83);
  font-size: 0.72rem;
}

.member-detail-loading,
.member-detail-error {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100vh - var(--nav-height));
  gap: 18px;
  color: #817589;
  text-align: center;
  background: #faf7fc;
}

.member-detail-loading-star {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #c79be9;
  transform: rotate(45deg);
  animation: member-detail-loading 1.5s ease-in-out infinite;
}

.member-detail-error a {
  color: #9b68c3;
}

.member-detail-orbit {
  position: absolute;
  border: 1px solid rgba(169, 118, 207, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.member-detail-orbit--one {
  top: 160px;
  right: -240px;
  width: 600px;
  height: 600px;
}

.member-detail-orbit--two {
  top: 520px;
  left: -210px;
  width: 420px;
  height: 420px;
}

@keyframes member-detail-loading {
  0%, 100% { opacity: 0.42; transform: rotate(45deg) scale(0.78); }
  50% { opacity: 1; transform: rotate(135deg) scale(1); }
}

@media (max-width: 1080px) {
  .member-detail-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  }

  .member-detail-copy {
    padding: 44px;
  }

  .member-detail-copy h1 {
    font-size: clamp(3.8rem, 7vw, 5.7rem);
  }

  .member-detail-other-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .member-detail-wrap {
    width: min(100% - 28px, 680px);
    padding-top: 20px;
  }

  .member-detail-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .member-detail-copy {
    padding: 42px 30px 22px;
  }

  .member-detail-copy h1 {
    font-size: clamp(3.5rem, 15vw, 5.5rem);
  }

  .member-detail-lead {
    margin-top: 26px;
  }

  .member-detail-visuals {
    min-height: 570px;
  }

  .member-detail-portrait--character {
    inset: 0 82px 0 0;
  }

  .member-detail-portrait--cast {
    right: 20px;
    bottom: 22px;
  }

  .member-detail-profile,
  .member-detail-sources {
    grid-template-columns: 1fr;
  }

  .member-detail-sources {
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .member-detail-wrap {
    width: min(100% - 20px, 520px);
    padding-bottom: 64px;
  }

  .member-detail-nav {
    margin-bottom: 14px;
  }

  .member-detail-back,
  .member-detail-generation {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .member-detail-hero {
    border-radius: 24px;
  }

  .member-detail-copy {
    padding: 34px 22px 12px;
  }

  .member-detail-eyebrow {
    margin-bottom: 22px;
  }

  .member-detail-copy h1 {
    font-size: clamp(3.25rem, 17vw, 4.8rem);
  }

  .member-detail-lead {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  .member-detail-facts {
    grid-template-columns: 1fr;
  }

  .member-detail-facts .member-detail-color-fact {
    grid-column: auto;
  }

  .member-detail-color-label {
    display: block;
  }

  .member-detail-color-label small {
    display: block;
    margin-top: 2px;
  }

  .member-detail-facts > div {
    padding: 13px 15px;
  }

  .member-detail-visuals {
    min-height: 480px;
  }

  .member-detail-visual-halo {
    top: 15%;
    left: 8%;
    width: 230px;
  }

  .member-detail-portrait--character {
    inset: 4px 48px 0 -18px;
  }

  .member-detail-portrait--cast {
    right: 12px;
    bottom: 16px;
    width: 132px;
    border-width: 5px;
    border-radius: 18px;
  }

  .member-detail-portrait--cast:has(.member-detail-cast-switch) figcaption {
    display: none;
  }

  .member-detail-cast-switch {
    right: 7px;
    bottom: 7px;
    width: calc(100% - 14px);
  }

  .member-detail-cast-switch button {
    min-height: 22px;
    padding-inline: 6px;
    font-size: 0.52rem;
  }

  .member-detail-name-mark {
    top: 24px;
    right: 15px;
  }

  .member-detail-profile-copy,
  .member-detail-cast-card,
  .member-detail-sources {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .member-detail-source-links {
    grid-template-columns: 1fr;
  }

  .member-detail-source-link {
    min-height: 78px;
  }

  .member-detail-others {
    margin-top: 52px;
  }

  .member-detail-others-heading {
    align-items: start;
  }

  .member-detail-others-heading > a {
    margin-top: 8px;
    white-space: nowrap;
  }

  .member-detail-other-grid {
    display: flex;
    gap: 10px;
    margin-inline: -4px;
    padding: 0 4px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .member-detail-other-grid::-webkit-scrollbar {
    display: none;
  }

  .member-detail-other-card {
    flex: 0 0 min(82vw, 290px);
    scroll-snap-align: start;
  }

  .member-detail-other-media {
    width: 72px;
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-detail-loading-star {
    animation: none;
  }

  .member-detail-back,
  .member-detail-source-link,
  .member-detail-other-card,
  .member-detail-cast-switch button,
  .member-detail-portrait img,
  .member-detail-other-media img {
    transition: none;
  }
}
