:root {
  --member-bg: #090711;
  --member-paper: #f7f1f7;
  --member-ink: #302548;
  --member-muted: #766a88;
  --member-purple: #a868ef;
  --member-purple-soft: #d8b9ff;
  --member-gold: #d79b56;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(136, 77, 207, .18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(88, 67, 154, .15), transparent 28%),
    linear-gradient(180deg, #0b0914, #090711);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

.member-page {
  min-height: 100vh;
  padding: 112px 34px 38px;
  overflow-x: clip;
}

.member-back {
  display: inline-flex;
  margin: 0 0 18px max(18px, calc((100vw - 1240px) / 2));
  color: rgba(231, 215, 249, .52);
  font-size: 10px;
  text-decoration: none;
}

.member-book {
  position: relative;
  width: min(1180px, calc(100vw - 120px));
  min-height: 690px;
  margin: 0 auto;
}

.member-paper {
  position: relative;
  min-height: 690px;
  margin-right: 150px;
  overflow: hidden;
  border: 1px solid rgba(214, 191, 229, .45);
  border-radius: 25px;
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 144, 226, .10), transparent 27%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,239,248,.98));
  box-shadow:
    0 28px 75px rgba(0,0,0,.33),
    inset 0 0 80px rgba(124, 73, 150, .04);
  color: var(--member-ink);
}

.member-paper::before,
.member-paper::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.member-paper::before {
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(95, 72, 115, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 72, 115, .035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.member-paper::after {
  width: 260px;
  height: 150px;
  right: -54px;
  bottom: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 102, 233, .12), transparent 70%);
}

.member-view {
  position: relative;
  z-index: 2;
  min-height: 690px;
}

.member-view-enter {
  animation: memberViewIn .28s ease both;
}

@keyframes memberViewIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* INTRO */
.member-intro {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(430px, 1.1fr);
}

.member-intro-photo {
  position: relative;
  min-height: 690px;
  padding: 28px 16px 28px 30px;
  display: flex;
  align-items: center;
}

.member-polaroid {
  position: relative;
  width: 100%;
  height: 620px;
  padding: 13px 13px 54px;
  transform: rotate(-1.3deg);
  background: #fff;
  box-shadow: 0 18px 35px rgba(48, 29, 55, .20);
}

.member-polaroid::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: -25px;
  top: -15px;
  width: 130px;
  height: 34px;
  transform: rotate(-14deg);
  background: rgba(174, 110, 229, .55);
}

.member-polaroid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.member-polaroid-caption {
  position: absolute;
  left: 26px;
  bottom: 20px;
  color: #393045;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 13px;
  transform: rotate(-4deg);
}

.member-intro-copy {
  position: relative;
  padding: 54px 52px 42px 42px;
}

.member-intro-copy::before {
  content: "♡";
  position: absolute;
  right: 36px;
  top: 40px;
  color: rgba(153, 85, 226, .48);
  font-size: 35px;
  transform: rotate(16deg);
}

.member-name {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.08;
}

.member-code {
  margin-top: 5px;
  color: #5a4472;
  font-size: 19px;
  letter-spacing: .16em;
}

.member-note-card {
  position: absolute;
  right: 28px;
  top: 102px;
  width: 180px;
  padding: 15px 16px;
  transform: rotate(-5deg);
  border: 1px solid rgba(111, 82, 119, .13);
  background: #f1eadf;
  box-shadow: 0 8px 17px rgba(39, 24, 44, .12);
  color: #5f5364;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 11px;
  line-height: 1.65;
}

.member-facts {
  display: grid;
  gap: 14px;
  margin-top: 45px;
  padding-right: 172px;
}

.member-fact {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  color: #514262;
  font-size: 13px;
  line-height: 1.65;
}

.member-fact-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 21.45px;
  color: #a56bea;
  font-size: 16px;
  line-height: 1;
}

.member-divider {
  height: 1px;
  margin: 23px 0 19px;
  background: linear-gradient(90deg, rgba(122,95,145,.16), rgba(122,95,145,.06), transparent);
}

.member-bio {
  max-width: 530px;
  margin: 0;
  color: #675a75;
  font-size: 12px;
  line-height: 2;
  white-space: pre-line;
}

.member-script {
  margin-top: 26px;
  color: #a675de;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  transform: rotate(-2deg);
}

/* RIGHT STICKY TABS */
.member-mobile-heading,
.member-tab-label-short {
  display: none;
}
.member-sticky-tabs {
  position: absolute;
  right: 0;
  top: 32px;
  width: 165px;
  display: grid;
  gap: 15px;
  z-index: 10;
}

.member-tab {
  position: relative;
  min-height: 104px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(185, 130, 236, .28);
  border-radius: 7px 13px 10px 6px;
  background:
    linear-gradient(135deg, #eedaff, #d7b4ff);
  box-shadow: none;
  opacity: 1;
  color: #4c296d;
  text-align: left;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: transform .2s ease;
}

.member-tab::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -8px;
  width: 52px;
  height: 17px;
  transform: rotate(2deg);
  background: rgba(214, 125, 225, .48);
}

.member-tab-solo {
  background: linear-gradient(135deg, #ffe7bc, #efbe7b);
  color: #714014;
  transform: rotate(1deg);
}

.member-tab-birthday {
  background: linear-gradient(135deg, #dbe5ff, #abc1fa);
  color: #2f4f93;
  transform: rotate(-.5deg);
}

.member-tab:hover,
.member-tab.active {
  transform: translateX(-9px) rotate(0deg) scale(1.03);
  box-shadow: none;
}

.member-tab-icon {
  font-size: 24px;
}

.member-tab strong {
  display: block;
  font-size: 14px;
}

.member-tab small {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: .12em;
  opacity: 1;
}

/* A full year of monthly photos on one scrapbook page. */
.calendar-year-nav select option {
  color: var(--member-ink);
  background: var(--member-paper);
}
.calendar-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 23px 0;
}
.calendar-year-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.calendar-year-number {
  color: var(--member-ink);
  font: 64px/1 Georgia,serif;
  letter-spacing: -.04em;
}
.calendar-year-copy {
  color: var(--member-muted);
  font: 13px "Songti SC",serif;
}
.calendar-year-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-year-nav select {
  border: 0;
  background: transparent;
  color: var(--member-ink);
  font: 13px Georgia,serif;
  cursor: pointer;
  padding: 8px 0;
}
.calendar-year-nav button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9c9e8;
  border-radius: 50%;
  color: var(--member-ink);
  background: #f1e8f7;
  font: 24px Georgia,serif;
  cursor: pointer;
}
.calendar-year-nav button:hover {
  background: #e7d8f2;
}
.member-calendar button:focus-visible,.member-calendar select:focus-visible {
  outline: 3px solid var(--member-purple);
  outline-offset: 3px;
}
.member-calendar button:disabled {
  opacity: .45;
  cursor: default;
}
.calendar-desk {
  position: relative;
  padding: 18px 10px 22px;
  isolation: isolate;
}
.calendar-desk::before,.calendar-desk::after {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 22px;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}
.calendar-desk::before {
  z-index: 2;
  left: 18px;
  right: 18px;
  background: #796787;
  transform: translateY(6px);
}
.calendar-desk::after {
  z-index: 1;
  left: 25px;
  right: 25px;
  background: #3d3245;
  transform: translateY(12px);
  box-shadow: 0 18px 28px rgba(37,22,49,.24);
}
.calendar-binding {
  position: absolute;
  z-index: 3;
  top: -33px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}
.calendar-binding span {
  width: 13px;
  height: 29px;
  border: 3px solid #b9aac5;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  box-shadow: inset 1px 0 #f7eefa,2px 0 2px rgba(26,17,34,.45);
}
.calendar-year-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  padding: 1px;
  border: 5px solid #62526e;
  border-top-width: 9px;
  border-radius: 5px 5px 2px 2px;
  background: #806e8b;
  box-shadow: 0 2px 0 #9b87a7,0 8px 26px rgba(43,27,55,.24),0 22px 42px rgba(32,20,41,.17);
}
.calendar-month-card {
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: #4a4054;
}
.calendar-page-turn {
  position: absolute;
  margin: 0;
  transform-origin: center top;
  backface-visibility: hidden;
  pointer-events: none;
  will-change: transform,opacity;
}
.calendar-turn-shade {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(25,16,33,.5),transparent 25%,rgba(236,219,248,.15) 65%,rgba(25,16,33,.2));
  opacity: 0;
}
.calendar-card-heading {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #806e8b;
  color: #f2e8f7;
  background: #5b4d67;
  font: 23px/1 Georgia,serif;
}
.calendar-card-heading small {
  font: 12px/1 Georgia,serif;
  letter-spacing: .08em;
}
.calendar-card-month {
  margin-left: auto;
  color: #d4c4dd;
  font: 12px/1 Georgia,"Noto Serif SC",serif;
}
.calendar-photo-space {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 8px;
  box-sizing: border-box;
}
.calendar-photo-open {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  isolation: isolate;
  width: 84%;
  box-sizing: border-box;
  background: #fffdfb;
  box-shadow: 2px 5px 12px #4b2e6226;
  cursor: zoom-in;
  text-align: left;
  color: #695174;
  transform: translate(var(--shift-x),var(--shift-y)) rotate(var(--tilt)) scale(var(--photo-scale));
}
.calendar-photo-open:has(.calendar-photo-layer) {
  width: 78%;
}
.calendar-photo-front {
  position: relative;
  z-index: 3;
  display: block;
  padding: 6px;
  background: #fffdfb;
}
.calendar-photo-layer {
  position: absolute;
  inset: 0;
  padding: 6px;
  background: #fffdfb;
  box-shadow: 1px 2px 5px #4b2e6226;
  pointer-events: none;
}
.calendar-photo-layer-1 {
  z-index: 2;
  transform: translate(6px, 0) rotate(2deg);
}
.calendar-photo-layer-2 {
  z-index: 1;
  transform: translate(-6px, 0) rotate(-2deg);
}
.calendar-photo-open::before {
  content: "";
  position: absolute;
  left: calc(50% - 24px);
  top: -9px;
  width: 48px;
  height: 20px;
  z-index: 4;
  background: repeating-linear-gradient(90deg,#c8abdf9c 0 3px,#cdb3e498 3px 6px);
  clip-path: polygon(2% 0,98% 0,96% 18%,100% 35%,97% 52%,100% 77%,98% 100%,1% 100%,4% 78%,0 55%,3% 32%);
  transform: rotate(var(--tape-tilt));
  pointer-events: none;
}
.calendar-month-card:nth-child(3n) .calendar-photo-open::before {
  background: #e7c28b9c;
}
.calendar-month-card:nth-child(4n) .calendar-photo-open::before {
  background: repeating-linear-gradient(-45deg,#adc5d9a8 0 3px,#c5d7e89c 3px 6px);
}
.calendar-photo-open img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  object-position: center 30%;
  transition: filter .2s;
}
.calendar-photo-open:hover img {
  filter: brightness(1.08);
}
.calendar-photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 10px 1px 3px;
  min-height: 27px;
  box-sizing: border-box;
  font: 12px "Kaiti SC","STKaiti","KaiTi",cursive;
}
.calendar-photo-caption small {
  flex-shrink: 0;
  color: #ad99b5;
  font: 8px Inter,sans-serif;
}
.calendar-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84%;
  aspect-ratio: 1.15;
  padding: 0;
  color: #e9d9f1;
  background: linear-gradient(145deg,#685774,#55465f);
}
.calendar-empty-butterfly {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #c5a3df;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calendar-photo-empty p {
  font: 12px "Kaiti SC","STKaiti",cursive;
}
.calendar-year-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  color: var(--member-muted);
  font-size: 10px;
  line-height: 1.6;
}
.calendar-year-footer>span {
  white-space: nowrap;
}
@media (min-width:721px) and (max-width:1040px) {
  .calendar-year-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .calendar-year-copy {
    display: none;
  }
}
@media (max-width:720px) {
  .calendar-year-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    margin: 14px 0 20px;
  }
  .calendar-year-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }
  .calendar-year-number {
    font-size: 44px;
  }
  .calendar-year-copy {
    font-size: 12px;
    line-height: 1.5;
  }
  .calendar-year-nav {
    align-self: center;
    flex-shrink: 0;
    gap: 6px;
  }
  .calendar-year-nav button {
    width: 30px;
    height: 30px;
  }
  .calendar-desk {
    padding: 16px 3px 18px;
  }
  .calendar-desk::before,.calendar-desk::after {
    top: 26px;
    bottom: 18px;
  }
  .calendar-desk::before {
    left: 9px;
    right: 9px;
    transform: translateY(5px);
  }
  .calendar-desk::after {
    left: 13px;
    right: 13px;
    transform: translateY(9px);
  }
  .calendar-binding {
    top: -27px;
  }
  .calendar-binding span {
    width: 10px;
    height: 25px;
    border-width: 2px;
  }
  .calendar-year-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    border-width: 3px;
    border-top-width: 7px;
    box-shadow: 0 2px 0 #9b87a7,0 7px 17px rgba(43,27,55,.22),0 16px 26px rgba(32,20,41,.14);
  }
  .calendar-photo-open {
    transform: translate(calc(var(--shift-x) * .35),calc(var(--shift-y) * .5)) rotate(calc(var(--tilt) * .65)) scale(var(--photo-scale));
  }
  .calendar-card-heading {
    font-size: 21px;
    gap: 4px;
  }
  .calendar-card-heading small {
    font-size: 11px;
  }
  .calendar-card-month {
    font-size: 11px;
  }
  .calendar-photo-caption {
    font-size: 11px;
  }
  .calendar-year-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* shared content */
.member-content {
  min-height: 690px;
  padding: 34px 42px 42px;
}

.member-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(105, 83, 123, .13);
}

.member-section-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.member-section-title span {
  color: var(--member-purple);
  font-size: 29px;
}

.member-section-title h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 31px;
  font-weight: 500;
}

.member-section-title small {
  margin-left: 9px;
  color: #715e80;
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
}

.member-section-handwrite {
  color: #806699;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 12px;
  font-style: italic;
  transform: rotate(-2deg);
}

/* PHOTO */
.birthday-year-chip {
  min-width: 58px;
  height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #e8e0ef;
  color: #6d5c7b;
  font-size: 10px;
  cursor: pointer;
}

.birthday-year-chip.active {
  background: linear-gradient(90deg, #9560df, #b477ef);
  color: #fff;
  box-shadow: 0 6px 17px rgba(138, 84, 196, .20);
}

.member-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 15px;
}

.member-photo-card {
  position: relative;
  padding: 9px 9px 14px;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(62, 42, 72, .13);
  text-align: left;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

.member-photo-card:nth-child(odd) {
  transform: rotate(-1deg);
}
.member-photo-card:nth-child(even) {
  transform: rotate(1deg);
}

.member-photo-card:hover {
  z-index: 4;
  transform: translateY(-6px) rotate(0deg) scale(1.025);
  box-shadow: 0 15px 30px rgba(62, 42, 72, .21);
}

.member-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #ded6e2;
}

.member-photo-date {
  display: block;
  margin-top: 9px;
  color: #574765;
  font-size: 9px;
  font-weight: 700;
}

.member-photo-location {
  display: block;
  margin-top: 3px;
  color: #9870c0;
  font-size: 8px;
}

.member-photo-title {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #4f4357;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  color: #8c7e97;
  text-align: center;
}

/* SOLO */
.solo-layout {
  margin-top: 24px;
}

.solo-stage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.solo-stage-entry {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 24px;
}

.solo-stage-entry:last-child {
  padding-bottom: 0;
}

.solo-stage-entry::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 25px;
  bottom: -25px;
  width: 1px;
  background: rgba(143, 96, 196, .34);
}

.solo-stage-entry:last-child::before {
  bottom: 12px;
}

.solo-timeline-date {
  position: relative;
  align-self: start;
  padding: 17px 0 0 22px;
  color: #72578b;
}

.solo-timeline-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 13px;
  height: 13px;
  border: 2px solid #a26ae6;
  border-radius: 50%;
  background: #f7f1f7;
}

.solo-year {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.solo-timeline-day {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--member-muted);
}

.solo-stage-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(126, 95, 144, .13);
  border-radius: 15px;
  background: rgba(255,255,255,.45);
}

.solo-stage-cover {
  position: relative;
  min-width: 0;
}
.solo-cover-footer {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 40px;
  transform: translateY(50%);
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.solo-cover-caption {
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.solo-watch-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #aa70e8;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease;
}
.solo-watch-link:hover {
  background: #955bd3;
}
.solo-watch-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.solo-stage-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.53) 25%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.08) 75%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.solo-stage-cover:has(.solo-watch-link) .solo-stage-media::after {
  content: none;
}

.solo-stage-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #17121e;
  box-shadow: 0 10px 24px rgba(40,25,47,.18);
  cursor: zoom-in;
  text-align: left;
}

.solo-stage-media img {
  width: 100%;
  aspect-ratio: 5 / 8;
  min-height: 300px;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform .2s ease, filter .2s ease;
}

.solo-stage-media::after {
  content: "舞台上的你 · 光芒万丈 ♡";
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 40px;
  transform: translateY(50%);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
  pointer-events: none;
}

.solo-stage-media:hover img {
  transform: scale(1.025);
  filter: brightness(.9);
}

.solo-zoom-hint {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  opacity: 0;
  background: rgba(14, 9, 20, .60);
  color: #fff;
  font-size: 8px;
  letter-spacing: .08em;
  backdrop-filter: blur(7px);
  transition: opacity .18s ease;
}

.solo-stage-media:hover .solo-zoom-hint,
.solo-stage-media:focus-visible .solo-zoom-hint {
  opacity: 1;
}

.solo-stage-copy {
  padding: 6px 8px 6px 0;
}

.solo-stage-date {
  color: #765d88;
  font-size: 10px;
}

.solo-stage-copy h3 {
  margin: 8px 0 15px;
  color: #33233f;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.solo-meta {
  display: grid;
  gap: 8px;
  color: #685974;
  font-size: 10px;
}

.solo-stage-description {
  margin: 18px 0 0;
  color: #71647b;
  font-size: 11px;
  line-height: 1.9;
}

.solo-related {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.solo-related-photo {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 4px 10px rgba(47,31,56,.13);
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

.solo-related-photo:hover,
.solo-related-photo:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(47,31,56,.20);
}

.solo-related-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* BIRTHDAY */
.birthday-years {
  display: flex;
  gap: 8px;
  margin: 18px 0 23px;
}

.birthday-layout {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(380px, 1.2fr);
  gap: 25px;
}

.birthday-cover {
  position: relative;
  padding: 12px 12px 42px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(52,32,60,.15);
  transform: rotate(-2deg);
}

.birthday-cover::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -10px;
  width: 80px;
  height: 26px;
  transform: rotate(-7deg);
  background: rgba(215, 170, 113, .58);
}

.birthday-cover img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.birthday-cover-caption {
  position: absolute;
  left: 20px;
  bottom: 14px;
  color: #655471;
  font-family: Georgia, serif;
  font-style: italic;
}

.birthday-letter {
  position: relative;
  min-height: 390px;
  padding: 34px 36px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 31px,
      rgba(92, 109, 137, .09) 31px 32px
    ),
    #f8f0e6;
  box-shadow: 0 10px 24px rgba(58,39,48,.13);
  color: #615362;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 2.1;
  white-space: pre-line;
}

.birthday-letter::after {
  content: "♡";
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: #c17ee9;
  font-size: 28px;
  transform: rotate(16deg);
}

.birthday-media-title {
  margin: 29px 0 12px;
  color: #594867;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
}

.birthday-photo-strip,
.birthday-video-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.birthday-photo-strip img,
.birthday-video-card {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 5px solid #fff;
  background: #17131f;
  box-shadow: 0 5px 14px rgba(52,33,61,.13);
}

.birthday-video-card {
  position: relative;
  display: grid;
  place-items: center;
  color: #d7bbef;
  font-size: 10px;
}

.birthday-video-card::before {
  content: "▶";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: rgba(98, 64, 128, .68);
  color: #fff;
}

/* MEMBER RAIL */
.member-rail {
  width: min(900px, calc(100vw - 50px));
  margin: 19px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.member-rail-link {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
}

.member-rail-avatar {
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 1px solid rgba(211, 176, 244, .22);
  border-radius: 50%;
  background: rgba(17, 11, 25, .72);
}

.member-rail-link.active .member-rail-avatar {
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #ab70ee, 0 0 22px rgba(167,103,230,.35);
}

.member-rail-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.member-rail-link strong {
  color: #fff;
  font-size: 10px;
}

.member-rail-link small {
  color: rgba(214, 186, 237, .42);
  font-size: 7px;
}

/* LIGHTBOX */
.member-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}

.member-lightbox.open {
  visibility: visible;
  opacity: 1;
}

.member-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 3, 8, .82);
  backdrop-filter: blur(8px);
}

.member-lightbox-card {
  position: relative;
  z-index: 2;
  width: min(980px, 94vw);
  max-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  overflow: hidden;
  border: 1px solid rgba(211, 178, 244, .25);
  border-radius: 20px;
  background: #0e0b14;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.member-lightbox-image {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: #050407;
}

.member-lightbox-image img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.member-lightbox-copy {
  padding: 46px 30px 30px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 90% 0, rgba(142,81,203,.15), transparent 35%),
    #15101c;
}

.member-lightbox-meta {
  color: #bd88f0;
  font-size: 9px;
  letter-spacing: .12em;
}

.member-lightbox-copy h2 {
  margin: 12px 0 10px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.member-lightbox-copy p {
  margin: 0;
  color: rgba(244,235,250,.63);
  font-size: 12px;
  line-height: 1.85;
}

.member-lightbox-close,
.member-lightbox-nav {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226,199,250,.22);
  background: rgba(8,5,12,.70);
  color: #fff;
  cursor: pointer;
}

.member-lightbox-close {
  right: 15px;
  top: 15px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  font-size: 20px;
}

.member-lightbox-nav {
  top: 50%;
  width: 41px;
  height: 56px;
  transform: translateY(-50%);
  border-radius: 12px;
  font-size: 29px;
}

.member-lightbox-nav[hidden] {
  display: none;
}

.member-lightbox-prev {
  left: 13px;
}
.member-lightbox-next {
  left: calc(70% - 54px);
}

@media (max-width: 1040px) {
  .member-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .member-book {
    width: min(900px, 100%);
  }

  .member-paper {
    margin-right: 0;
  }

  .member-sticky-tabs {
    position: sticky;
    top: 76px;
    right: auto;
    width: 100%;
    grid-template-columns: minmax(80px, 1.2fr) repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(214, 191, 229, .45);
    border-bottom: 0;
    border-radius: var(--member-tabs-radius, 25px) var(--member-tabs-radius, 25px) 0 0;
    background: #f7f1f7;
    transform: none;
    z-index: 50;
  }

  .member-tab {
    min-width: 0;
    min-height: 44px;
    padding: 6px 2px 9px;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    --tab-icon-fill: linear-gradient(135deg, #eedaff, #d7b4ff);
    opacity: 1;
    color: #4c296d;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .member-tab::before,
  .member-tab small {
    display: none;
  }

  .member-mobile-heading {
    display: block;
    min-width: 0;
    color: var(--member-ink);
  }
  .member-mobile-heading h2 {
    margin: 0;
    font: 500 24px/1.25 "Noto Serif SC", "Songti SC", serif;
  }
  .member-mobile-heading small {
    display: block;
    margin-top: 5px;
    color: var(--member-muted);
    font-size: 7px;
    letter-spacing: .06em;
    white-space: nowrap;
  }
  .member-tab-label-full {
    display: none;
  }
  .member-tab-label-short {
    display: inline;
  }
  .member-tab-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    background: var(--tab-icon-fill);
  }
  .member-tab-solo {
    --tab-icon-fill: linear-gradient(135deg, #ffe7bc, #efbe7b);
    color: #714014;
  }
  .member-tab-birthday {
    --tab-icon-fill: linear-gradient(135deg, #dbe5ff, #abc1fa);
    color: #2f4f93;
  }
  .member-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 15px);
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
  }
  .member-content .member-section-title {
    display: none;
  }
  .member-calendar .member-section-head {
    display: none;
  }
  .member-content .member-section-head {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .member-tab strong {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
  }

  .member-tab:hover,
  .member-tab.active {
    transform: none;
    box-shadow: none;
  }

  .member-tab.active strong {
    font-weight: 600;
  }
  .member-tab:focus-visible {
    outline: 2px solid #a868ef;
    outline-offset: 2px;
  }
  .member-book {
    scroll-margin-top: 76px;
  }
  .member-paper {
    border-top: 0;
    border-radius: 0 0 25px 25px;
    scroll-margin-top: 145px;
  }

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

  .member-intro-photo {
    min-height: auto;
    padding: 24px 24px 0;
  }

  .member-polaroid {
    height: 520px;
  }

  .member-intro-copy {
    padding: 40px 35px 42px;
  }

  .member-note-card {
    position: relative;
    right: auto;
    top: auto;
    width: min(250px, 75%);
    margin: 20px 0 0 auto;
  }

  .member-facts {
    margin-top: 28px;
    padding-right: 0;
  }

  .member-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .member-page {
    padding: 92px 10px 28px;
  }

  .member-back {
    margin-left: 8px;
  }

  .member-paper,
  .member-view {
    min-height: 0;
  }

  .member-intro-photo {
    padding: 16px 13px 0;
  }

  .member-polaroid {
    height: 430px;
    padding-bottom: 48px;
  }

  .member-intro-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 12px;
    padding: 32px 22px 34px;
  }

  .member-intro-copy::before {
    display: none;
  }
  .member-name {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(32px, 10vw, 40px);
    align-self: end;
  }
  .member-code {
    grid-column: 1;
    grid-row: 2;
    margin-top: 5px;
    font-size: 16px;
  }

  .member-note-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 100%;
    margin: 0;
    padding: 13px 12px;
  }

  .member-note-card::after {
    content: "♡";
    position: absolute;
    z-index: 1;
    top: -23px;
    right: 8px;
    color: rgba(153, 85, 226, .48);
    font: 35px/1 system-ui, sans-serif;
    transform: rotate(16deg);
    pointer-events: none;
  }

  .member-facts,
  .member-divider,
  .member-bio,
  .member-script {
    grid-column: 1 / -1;
  }
  .member-facts {
    margin-top: 24px;
  }

  .member-content {
    padding: 16px 17px 31px;
  }

  .member-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 12px;
  }

  .member-section-title {
    gap: 10px;
  }
  .member-section-title h2 {
    font-size: 25px;
    line-height: 1.3;
  }
  .member-section-title > span {
    font-size: 24px;
  }
  .member-section-title small {
    margin-left: 7px;
    font-size: 9px;
  }
  .member-back {
    margin-bottom: 12px;
  }

  .member-sticky-tabs {
    padding: 12px 17px;
    gap: 3px;
  }
  .member-tab strong {
    font-size: 12px;
  }
  .member-calendar .calendar-year-header {
    margin-top: 0;
  }
  .member-mobile-heading h2 {
    font-size: 23px;
  }

  .member-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 10px;
  }

  .solo-stage-entry {
    grid-template-columns: 57px minmax(0, 1fr);
    gap: 9px;
  }

  .solo-timeline-date {
    padding-left: 25px;
  }
  .solo-year {
    font-size: 10px;
  }
  .solo-timeline-day {
    font-size: 9px;
  }
  .solo-stage-card {
    padding: 12px;
    gap: 16px;
  }
  .solo-stage-copy {
    min-width: 0;
    padding-right: 0;
  }
  .solo-stage-copy h3 {
    font-size: 22px;
  }
  .solo-related {
    flex-wrap: wrap;
  }
  .solo-related-photo {
    width: 52px;
    height: 52px;
  }

  .solo-stage-card {
    grid-template-columns: 1fr;
  }

  .solo-stage-media img {
    min-height: 0;
  }

  .birthday-layout {
    grid-template-columns: 1fr;
  }

  .birthday-photo-strip,
  .birthday-video-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-rail {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(4px, 2vw, 12px);
    padding: 8px 5px 15px;
  }

  .member-rail-link {
    min-width: 0;
  }
  .member-rail-avatar {
    width: clamp(40px, 12vw, 52px);
    height: clamp(40px, 12vw, 52px);
  }
  .member-rail-link strong {
    white-space: nowrap;
  }

  .member-lightbox {
    padding: 8px;
  }

  .member-lightbox-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
  }

  .member-lightbox-image {
    min-height: 58vh;
  }

  .member-lightbox-copy {
    padding: 23px 20px 29px;
  }

  .member-lightbox-next {
    left: auto;
    right: 13px;
  }
}


/* COMPLETE MEMBER PROFILE */
.member-profile-archive {
  position: relative;
  z-index: 3;
  padding: 42px 44px 50px;
  border-top: 1px solid rgba(119, 88, 143, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.40), rgba(246,239,249,.72)),
    radial-gradient(circle at 90% 8%, rgba(165, 104, 225, .08), transparent 28%);
}

.member-profile-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.member-profile-archive-head span {
  color: var(--member-purple);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .22em;
}

.member-profile-archive-head h2 {
  margin: 7px 0 0;
  color: var(--member-ink);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.member-profile-archive-head p {
  max-width: 430px;
  margin: 0;
  color: #7a6c86;
  font-size: 10px;
  line-height: 1.75;
  text-align: right;
}

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

.member-profile-card {
  min-width: 0;
  padding: 18px 19px 19px;
  border: 1px solid rgba(121, 89, 146, .12);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.75), rgba(246,238,249,.70));
  box-shadow: 0 8px 22px rgba(58, 35, 70, .045);
}

.member-profile-card-wide,
.member-profile-card-basics {
  grid-column: 1 / -1;
}

.member-profile-card-title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(126, 92, 151, .10);
  color: #4d3b5c;
  font-size: 12px;
  font-weight: 700;
}

.member-profile-card-title small {
  margin-left: 7px;
  color: #a47bc7;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .16em;
}

.member-profile-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.member-profile-row {
  min-width: 0;
  padding: 13px 12px 3px 0;
  display: grid;
  gap: 4px;
}

.member-profile-row span,
.member-account-row span {
  color: #9a82aa;
  font-size: 8px;
  letter-spacing: .06em;
}

.member-profile-row strong {
  color: #554462;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.member-profile-text {
  margin: 12px 0 0;
  color: #665770;
  font-size: 11px;
  line-height: 1.9;
}

.member-account-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.member-account-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

.member-account-row strong {
  min-width: 0;
  color: #5a4868;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.member-original-list {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  list-style: none;
}

.member-original-list li {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  border: 1px solid rgba(123, 90, 147, .09);
  border-radius: 11px;
  background: rgba(255,255,255,.48);
}

.member-original-index {
  color: #a56bea;
  font-family: Georgia, serif;
  font-size: 10px;
}

.member-original-list strong {
  display: block;
  color: #4f3e5d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.member-original-list small {
  display: block;
  margin-top: 3px;
  color: #9a82aa;
  font-size: 7px;
  line-height: 1.4;
}

.member-profile-empty {
  color: #a596ae;
  font-size: 10px;
}

@media (max-width: 960px) {
  .member-profile-archive {
    padding: 34px 28px 42px;
  }

  .member-profile-archive-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .member-profile-archive-head p {
    text-align: left;
  }

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

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

@media (max-width: 620px) {
  .member-profile-archive {
    padding: 28px 18px 34px;
  }

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

  .member-profile-card,
  .member-profile-card-wide,
  .member-profile-card-basics {
    grid-column: auto;
  }

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

  .member-original-list {
    grid-template-columns: 1fr;
  }
}


/* Clickable member social accounts */
.member-account-link {
  min-width: 0;
  color: #7f51b5;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.member-account-link:hover,
.member-account-link:focus-visible {
  color: #a868ef;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-account-link:focus-visible {
  outline: 2px solid rgba(168, 104, 239, .35);
  outline-offset: 3px;
  border-radius: 4px;
}
