/* Editorial profile layout for group and idol pages. */
.profile-page {
  --profile-shell: min(100% - 48px, 1480px);
  --profile-card: color-mix(in srgb, var(--white, #fff) 88%, transparent);
}

.profile-page main {
  background:
    radial-gradient(circle at 92% 8%, rgba(112, 244, 239, .1), transparent 30rem),
    radial-gradient(circle at 6% 24%, rgba(255, 60, 166, .075), transparent 26rem);
}

.profile-page .breadcrumbs {
  width: var(--profile-shell);
  margin-inline: auto;
  padding-inline: 0;
}

.profile-page .idol-hero {
  position: relative;
  width: var(--profile-shell);
  margin-inline: auto;
  padding: 50px 0 88px;
  grid-template-columns: minmax(300px, 380px) minmax(360px, 1fr) minmax(300px, 350px);
  align-items: start;
  gap: clamp(32px, 4vw, 68px);
  background: none;
}

.profile-page .idol-hero::before {
  position: absolute;
  z-index: -1;
  top: 24px;
  right: -40px;
  width: min(44vw, 620px);
  height: min(44vw, 620px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .75), transparent 18%),
    conic-gradient(from 210deg, rgba(255, 60, 166, .09), rgba(118, 87, 255, .12), rgba(112, 244, 239, .1), rgba(255, 60, 166, .09));
  content: "";
  filter: blur(1px);
  pointer-events: none;
}

.profile-page .idol-avatar {
  width: 100%;
  max-width: 380px;
  aspect-ratio: .82;
  border-radius: 30px;
  box-shadow:
    0 34px 82px rgba(62, 34, 126, .22),
    0 8px 24px rgba(55, 34, 97, .11),
    inset 0 1px rgba(255, 255, 255, .58);
}

.profile-page .idol-media {
  padding: 26px;
}

.profile-page .idol-media > strong {
  font-size: clamp(52px, 5vw, 84px);
}

.profile-page .idol-title {
  min-width: 0;
  padding-top: 22px;
}

.profile-page .idol-title .eyebrow {
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(118, 87, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 8px 24px rgba(75, 44, 137, .07);
  backdrop-filter: blur(10px);
}

.profile-page .idol-title .eyebrow span {
  width: 18px;
}

.profile-page .idol-title h1 {
  max-width: 8ch;
  font-size: clamp(68px, 8vw, 128px);
  line-height: .82;
}

.profile-page .idol-title > p {
  margin-top: 16px;
  color: color-mix(in srgb, var(--muted, #69617b) 86%, var(--ink, #18132e));
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 650;
}

.profile-page .idol-intro {
  max-width: 58ch;
  margin: 27px 0 0;
  color: color-mix(in srgb, var(--ink, #18132e) 84%, var(--muted, #69617b));
  font-size: 17px;
  line-height: 1.75;
}

.profile-page .profile-actions {
  margin-top: 28px;
  gap: 10px;
}

.profile-page .profile-actions .button {
  min-height: 47px;
  padding-inline: 17px;
}

.profile-page .idol-facts {
  position: relative;
  margin-top: 18px;
  padding: 18px 22px 10px;
  overflow: hidden;
  border-color: rgba(118, 87, 255, .16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 245, 255, .88));
  box-shadow:
    0 24px 56px rgba(70, 42, 127, .11),
    inset 0 1px rgba(255, 255, 255, .9);
}

.profile-page .idol-facts::before {
  display: block;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 0;
  color: var(--violet, #7657ff);
  content: "PROFILE DETAILS";
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}

.profile-page .idol-facts::after {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--pink, #ff3ca6), var(--violet, #7657ff), var(--cyan, #70f4ef));
  content: "";
}

.profile-page .idol-facts div {
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 14px 0;
  gap: 16px;
  border: 0;
}

.profile-page .idol-facts dt {
  align-self: start;
  padding-top: 2px;
  color: color-mix(in srgb, var(--muted, #69617b) 78%, transparent);
  font-size: 9px;
  letter-spacing: .11em;
  opacity: .78;
}

.profile-page .idol-facts dd {
  color: var(--ink, #18132e);
  font-size: 13px;
  line-height: 1.5;
}

.profile-page .idol-content {
  width: var(--profile-shell);
  margin-inline: auto;
  padding: 0 0 78px;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 26px;
  border-top: 0;
}

.profile-page .idol-content > div {
  min-width: 0;
  padding: clamp(26px, 2.5vw, 36px);
  border: 1px solid rgba(118, 87, 255, .14);
  border-radius: 25px;
  background: var(--profile-card);
  box-shadow:
    0 18px 48px rgba(69, 41, 128, .08),
    inset 0 1px rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
}

.profile-page .idol-content .section-label {
  margin-bottom: 25px;
}

.profile-page .idol-content .section-label h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: .94;
}

.profile-page .idol-content .social-grid > a {
  min-height: 78px;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .95), rgba(247, 243, 255, .92));
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.profile-page .idol-content .social-grid > a:hover,
.profile-page .idol-content .social-grid > a:focus-visible {
  transform: none;
  border-color: rgba(255, 60, 166, .34);
  background: linear-gradient(120deg, #fff, #f8f3ff);
  box-shadow: 0 14px 34px rgba(77, 45, 144, .1);
}

.profile-page .idol-content .social-icon {
  width: 44px;
  height: 44px;
}

.profile-page .idol-content .editorial-note {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-page .idol-content .editorial-note p {
  max-width: 68ch;
  margin-bottom: 16px;
}

.profile-page .idol-content .editorial-note p:first-child {
  font-size: 16px;
  line-height: 1.72;
}

.profile-page .source-panel {
  width: var(--profile-shell);
  margin: 0 auto 92px;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(43, 24, 93, .2);
}

.profile-page .source-panel > div {
  min-width: 0;
}

.profile-page .source-panel p {
  max-width: 56ch;
  font-size: 12px;
  line-height: 1.55;
}

.profile-page .source-panel ul,
.profile-page .source-panel li {
  min-width: 0;
  max-width: 100%;
}

.profile-page .source-panel a {
  overflow-wrap: anywhere;
}

.profile-page .next-members {
  width: var(--profile-shell);
  margin: 0 auto 84px;
  padding: clamp(38px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(118, 87, 255, .13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 4%, rgba(112, 244, 239, .18), transparent 22rem),
    radial-gradient(circle at 4% 100%, rgba(255, 60, 166, .1), transparent 24rem),
    linear-gradient(145deg, #f4efff, #fff9fd 58%, #f0ffff);
  box-shadow: 0 24px 66px rgba(73, 43, 137, .1);
}

.profile-page .next-members .section-heading {
  margin-bottom: 32px;
}

.profile-page .next-members .section-heading h2 {
  font-size: clamp(38px, 4vw, 64px);
}

.profile-page .member-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.profile-page .member-card {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  grid-template-columns: 86px minmax(0, 1fr) 36px;
  gap: 15px;
  overflow: hidden;
  border-color: rgba(118, 87, 255, .13);
  border-radius: 19px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 9px 26px rgba(67, 41, 121, .055);
  transform: none !important;
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.profile-page .member-card::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink, #ff3ca6), var(--violet, #7657ff), var(--cyan, #70f4ef));
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--motion-ease, ease);
}

.profile-page .member-avatar {
  width: 86px;
  height: 96px;
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 8px 22px rgba(65, 38, 124, .12);
}

.profile-page .member-card-photo {
  transition: transform .42s var(--motion-spring, ease), filter .25s ease, opacity .25s ease;
}

.profile-page .member-card > div {
  min-width: 0;
}

.profile-page .member-card p {
  margin-bottom: 7px;
  overflow: hidden;
  color: color-mix(in srgb, var(--muted, #69617b) 88%, transparent);
  font-size: 8.5px;
  letter-spacing: .06em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page .member-card h3 {
  margin-bottom: 3px;
  font-family: var(--font-display, var(--display));
  font-size: 18px;
  letter-spacing: -.035em;
}

.profile-page .member-card small {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page .member-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(118, 87, 255, .13);
  border-radius: 50%;
  background: rgba(244, 240, 255, .88);
  color: var(--violet, #7657ff);
  font-size: 15px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .profile-page .member-card:hover,
  .profile-page .member-card:focus-within {
    transform: none !important;
    border-color: rgba(255, 60, 166, .27);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 38px rgba(75, 43, 141, .12);
  }

  .profile-page .member-card:hover::before,
  .profile-page .member-card:focus-within::before {
    transform: scaleX(1);
  }

  .profile-page .member-card:hover .member-card-photo,
  .profile-page .member-card:focus-within .member-card-photo {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.01);
  }

  .profile-page .member-card:hover .member-arrow,
  .profile-page .member-card:focus-within .member-arrow {
    border-color: transparent;
    background: linear-gradient(135deg, var(--pink, #ff3ca6), var(--violet, #7657ff));
    color: #fff;
    transform: translate(2px, -2px);
  }
}

html[data-theme="dark"] .profile-page {
  --profile-card: rgba(31, 23, 47, .82);
}

html[data-theme="dark"] .profile-page .idol-title .eyebrow,
html[data-theme="dark"] .profile-page .idol-facts,
html[data-theme="dark"] .profile-page .idol-content > div,
html[data-theme="dark"] .profile-page .member-card {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(30, 22, 45, .88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .profile-page .idol-content .social-grid > a {
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(120deg, rgba(41, 31, 59, .96), rgba(31, 24, 48, .94));
}

html[data-theme="dark"] .profile-page .member-arrow {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .profile-page .next-members {
  border-color: rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 92% 4%, rgba(112, 244, 239, .08), transparent 22rem),
    radial-gradient(circle at 4% 100%, rgba(255, 60, 166, .08), transparent 24rem),
    linear-gradient(145deg, #1a1327, #241a35 58%, #182b31);
}

@media (max-width: 1180px) {
  .profile-page .idol-hero {
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  }

  .profile-page .idol-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    padding: 18px 12px 10px;
  }

  .profile-page .idol-facts::before,
  .profile-page .idol-facts::after {
    grid-column: 1 / -1;
  }

  .profile-page .idol-facts div {
    display: block;
    padding: 14px;
    border: 0;
  }

  .profile-page .idol-facts dd {
    margin-top: 7px;
  }

  .profile-page .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .profile-page {
    --profile-shell: min(100% - 32px, 1480px);
  }

  .profile-page .idol-content {
    grid-template-columns: 1fr;
  }

  .profile-page .source-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-page .source-panel ul {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .profile-page .breadcrumbs {
    padding-top: 20px;
  }

  .profile-page .idol-hero {
    display: block;
    padding: 28px 0 62px;
  }

  .profile-page .idol-hero::before {
    top: 12%;
    right: -34%;
    width: 118vw;
    height: 118vw;
    opacity: .62;
  }

  .profile-page .idol-avatar {
    width: min(100%, 390px);
    margin: 0 0 42px;
  }

  .profile-page .idol-title {
    padding-top: 0;
  }

  .profile-page .idol-title h1 {
    max-width: none;
    font-size: clamp(60px, 20vw, 92px);
    overflow-wrap: anywhere;
  }

  .profile-page .idol-facts {
    display: block;
    margin-top: 34px;
    padding: 18px 22px 10px;
  }

  .profile-page .idol-facts div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 13px 0;
    border: 0;
  }

  .profile-page .idol-content {
    padding-bottom: 58px;
    gap: 16px;
  }

  .profile-page .idol-content > div {
    padding: 23px 20px;
    border-radius: 21px;
  }

  .profile-page .idol-content .section-label h2 {
    font-size: clamp(27px, 9vw, 38px);
  }

  .profile-page .source-panel {
    width: var(--profile-shell);
    margin: 0 auto 66px;
    padding: 23px 20px;
  }

  .profile-page .source-panel ul {
    padding-left: 0;
  }

  .profile-page .next-members {
    margin-bottom: 64px;
    padding: 32px 18px;
    border-radius: 24px;
  }

  .profile-page .next-members .section-heading.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-page .member-grid {
    grid-template-columns: 1fr;
  }

  .profile-page .member-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .profile-page {
    --profile-shell: min(100% - 24px, 1480px);
  }

  .profile-page .profile-actions .button {
    flex-basis: 100%;
  }

  .profile-page .member-card {
    min-height: 104px;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    padding: 11px;
    gap: 10px;
  }

  .profile-page .member-avatar {
    width: 72px;
    height: 82px;
  }
}