/* v9.28 - 个人中心：半透明音乐时光浮层 */
.music-profile.music-profile--time {
  width: min(820px, calc(100vw - 36px));
  max-height: min(820px, calc(100dvh - 42px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(250, 231, 184, .34);
  border-radius: 30px;
  color: #fff9ec;
  background:
    radial-gradient(circle at 88% 4%, rgba(244, 196, 101, .25), transparent 31%),
    radial-gradient(circle at 11% 102%, rgba(101, 158, 112, .23), transparent 38%),
    linear-gradient(132deg, rgba(27, 48, 38, .94), rgba(20, 31, 28, .91));
  box-shadow: 0 30px 90px rgba(4, 16, 11, .54), inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(26px) saturate(118%);
  -webkit-backdrop-filter: blur(26px) saturate(118%);
}

.music-profile.music-profile--time::backdrop {
  background: rgba(9, 17, 13, .45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.music-profile--time .profile-shell {
  position: relative;
  max-height: min(820px, calc(100dvh - 42px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: clamp(22px, 3.2vw, 34px);
}

.music-profile--time .profile-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image: radial-gradient(rgba(255,242,211,.8) .65px, transparent .75px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.music-profile--time button { font: inherit; }
.music-profile--time .profile-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,246,220,.26);
  border-radius: 50%;
  color: #fff8e8;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.music-profile--time .profile-close:hover { transform: rotate(8deg); background: rgba(255,255,255,.16); }
.music-profile--time .profile-close svg { width: 20px; height: 20px; }

.profile-time-hero {
  position: relative;
  min-height: 176px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 68px 24px 4px;
}
.profile-time-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -40px;
  width: 250px;
  height: 164px;
  opacity: .52;
  border: 1px solid rgba(250,222,158,.24);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(-17deg);
  box-shadow: -20px -17px 0 -10px rgba(250,222,158,.13), -44px -37px 0 -20px rgba(250,222,158,.10);
}

.profile-orbit {
  position: relative;
  flex: 0 0 108px;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255,233,174,.54);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff2bf 0 5%, #f3bd4c 21%, #bc7531 49%, #405e42 51%, #203d31 75%);
  box-shadow: 0 13px 25px rgba(5,16,10,.25), inset 0 0 0 7px rgba(255,247,216,.12);
}
.profile-orbit::before,
.profile-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.profile-orbit::before {
  inset: -12px;
  border: 1px solid rgba(255,240,194,.33);
  border-right-color: transparent;
  transform: rotate(-42deg);
}
.profile-orbit::after {
  width: 31px;
  height: 31px;
  right: -9px;
  top: 8px;
  background: radial-gradient(circle at 34% 28%, #fff9ce, #e4a53f 64%, #745225);
  box-shadow: 0 5px 14px rgba(6,18,11,.3);
}
.profile-orbit span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff8dd;
  font-family: Georgia, "Songti SC", serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(25,35,18,.48);
}

.profile-kicker,
.profile-section-label {
  margin: 0;
  color: #efd79d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}
.profile-time-hero h2 {
  max-width: 480px;
  margin: 7px 0 4px;
  color: #fff8e8;
  font-family: Georgia, "STSong", "Songti SC", serif;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: .02em;
  line-height: 1.12;
}
.profile-time-hero p:not(.profile-kicker) { margin: 0; color: rgba(255,248,232,.76); font-size: 15px; }
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #fcdd93;
  font-size: 14px;
  font-weight: 700;
}
.profile-status i { width: 8px; height: 8px; border-radius: 50%; background: #9bd18e; box-shadow: 0 0 0 4px rgba(155,209,142,.14); }

.profile-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
.profile-stat {
  min-height: 100px;
  padding: 15px 15px 13px;
  border: 1px solid rgba(255,243,213,.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.profile-stat strong { display: block; color: #fff4d1; font-family: Georgia, "STSong", serif; font-size: 30px; line-height: 1.15; }
.profile-stat strong em { margin-left: 3px; font-family: inherit; font-size: 14px; font-style: normal; }
.profile-stat span { display: block; margin-top: 5px; color: rgba(255,247,231,.7); font-size: 13px; font-weight: 700; }

.profile-card {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 18px;
  border: 1px solid rgba(255,243,213,.18);
  border-radius: 20px;
  background: rgba(5, 22, 16, .19);
}
.profile-card-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.profile-card h3 { margin: 4px 0 0; color: #fff9e9; font-size: 20px; line-height: 1.25; }
.profile-card .profile-tip { margin: 5px 0 0; color: rgba(255,248,232,.72); font-size: 14px; line-height: 1.55; }
.profile-earn { color: #f8d681; font-size: 13px; font-weight: 800; white-space: nowrap; }

.profile-timeline { position: relative; margin: 16px 0 2px; padding-left: 20px; }
.profile-timeline::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 1px; background: linear-gradient(#ffd77d, rgba(255,215,125,.08)); }
.profile-event { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 0 0 13px; }
.profile-event::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border: 2px solid #ffd77d; border-radius: 50%; background: #2d503c; box-shadow: 0 0 0 4px rgba(255,215,125,.1); }
.profile-event:last-child { padding-bottom: 0; }
.profile-event b { display: block; color: #fff8e8; font-size: 15px; }
.profile-event span { display: block; margin-top: 3px; color: rgba(255,248,232,.67); font-size: 13px; line-height: 1.4; }
.profile-event em { color: #f6d77e; font-size: 13px; font-style: normal; font-weight: 800; }

.profile-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 13px; }
.profile-action {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,243,213,.2);
  border-radius: 16px;
  color: #fff8e8;
  text-align: left;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.profile-action:hover { transform: translateY(-2px); border-color: rgba(255,227,154,.55); background: rgba(255,255,255,.14); }
.profile-action svg { flex: 0 0 21px; width: 21px; height: 21px; color: #f8d681; }
.profile-action span { display: block; font-size: 15px; font-weight: 800; }
.profile-action small { display: block; margin-top: 3px; color: rgba(255,248,232,.64); font-size: 12px; font-weight: 600; }

.profile-login {
  display: none;
  margin-top: 13px;
  padding: 18px;
  border: 1px solid rgba(255,222,144,.27);
  border-radius: 19px;
  background: rgba(4, 20, 14, .28);
}
.profile-login.is-open { display: block; animation: profile-rise .2s ease both; }
.profile-login h3 { margin: 0; color: #fff8e6; font-size: 20px; }
.profile-login p { margin: 5px 0 15px; color: rgba(255,248,232,.72); font-size: 13px; line-height: 1.5; }
.profile-fields { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.profile-fields input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,244,212,.26);
  border-radius: 13px;
  outline: none;
  color: #fff9ea;
  background: rgba(255,255,255,.10);
  font-size: 16px;
}
.profile-fields input::placeholder { color: rgba(255,248,232,.54); }
.profile-fields button,
.profile-login-submit {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  color: #294432;
  background: linear-gradient(135deg, #ffe8a3, #e8b95a);
  box-shadow: 0 6px 15px rgba(0,0,0,.18);
  cursor: pointer;
  font-weight: 850;
}
.profile-login-submit { width: 100%; margin-top: 9px; color: #fff9e8; background: linear-gradient(135deg, #4d8b5b, #286144); }
.profile-login-note { margin: 9px 0 0 !important; color: rgba(255,235,181,.78) !important; }

.profile-contact {
  display: none;
  margin-top: 13px;
  padding: 16px 18px;
  border: 1px solid rgba(255,243,213,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
}
.profile-contact.is-open { display: block; animation: profile-rise .2s ease both; }
.profile-contact h3 { margin: 0; color: #fff8e8; font-size: 19px; }
.profile-contact p { margin: 7px 0 0; color: rgba(255,248,232,.75); font-size: 14px; line-height: 1.6; }
.profile-contact strong { color: #f8d681; }
.profile-footnote { margin: 15px 0 0; color: rgba(255,248,232,.56); font-size: 12px; line-height: 1.5; text-align: center; }

.profile-level-card {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 19px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 137, .32);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 190, 81, .22), transparent 34%),
    linear-gradient(135deg, rgba(48, 84, 57, .48), rgba(21, 42, 31, .48));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 13px 31px rgba(2,13,8,.12);
}
.profile-level-card::after {
  content: "♪";
  position: absolute;
  right: 19px;
  top: 3px;
  color: rgba(255, 225, 145, .12);
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  pointer-events: none;
}
.profile-level-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; }
.profile-level-head h3 { margin: 4px 0 4px; color: #fff6d8; font-family: Georgia, "STSong", "Songti SC", serif; font-size: 25px; line-height: 1.18; }
.profile-level-head h3 span { display: inline-flex; align-items: center; justify-content: center; min-width: 41px; height: 25px; margin-right: 8px; border: 1px solid rgba(255,225,145,.5); border-radius: 999px; color: #f8d681; font-family: var(--sans); font-size: 12px; vertical-align: 3px; }
.profile-level-head p { margin: 0; color: rgba(255,248,232,.73); font-size: 14px; line-height: 1.5; }
.profile-level-head > strong { align-self: center; color: #ffe19a; font-family: Georgia, serif; font-size: 29px; }
.profile-level-head > strong small { font-family: var(--sans); font-size: 13px; }
.profile-level-progress { position: relative; z-index: 1; height: 8px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: rgba(0, 18, 10, .34); box-shadow: inset 0 1px 2px rgba(0,0,0,.22); }
.profile-level-progress i { display: block; height: 100%; min-width: 7px; border-radius: inherit; background: linear-gradient(90deg, #8dc982, #f4ce71); box-shadow: 0 0 16px rgba(243,205,111,.42); transition: width .4s ease; }
.profile-level-next { position: relative; z-index: 1; margin: 9px 0 0; color: rgba(255,244,210,.76); font-size: 13px; line-height: 1.5; }
.profile-growth-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.profile-growth-stats > div { min-width: 0; padding: 11px 8px 9px; border: 1px solid rgba(255,245,216,.13); border-radius: 13px; background: rgba(255,255,255,.075); text-align: center; }
.profile-growth-stats b { display: block; overflow: hidden; color: #fff7db; font-family: Georgia, "STSong", serif; font-size: 19px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.profile-growth-stats em { margin-left: 2px; color: #efd58f; font-family: var(--sans); font-size: 11px; font-style: normal; }
.profile-growth-stats span { display: block; margin-top: 5px; color: rgba(255,248,232,.65); font-size: 11px; font-weight: 700; white-space: nowrap; }
.profile-level-rail { position: relative; z-index: 1; display: flex; gap: 9px; margin: 17px -1px 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.profile-level-rail span { flex: 0 0 75px; display: grid; gap: 5px; color: rgba(255,248,232,.44); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; }
.profile-level-rail i { width: 25px; height: 25px; display: grid; place-items: center; justify-self: center; border: 1px solid rgba(255,244,210,.25); border-radius: 50%; color: rgba(255,248,232,.64); font-style: normal; }
.profile-level-rail .is-done { color: #f2d98f; }
.profile-level-rail .is-done i { border-color: #f1d27a; color: #25422e; background: #f1d27a; }
.profile-level-rail .is-current { color: #fff4cc; }
.profile-level-rail .is-current i { border-color: #f7d66f; color: #fff8dd; background: #577e50; box-shadow: 0 0 0 4px rgba(248,213,109,.14); }

@keyframes profile-rise { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }

/* iPad / desktop: the account is a fixed, one-screen card instead of a scrolling page. */
@media (min-width: 760px) and (min-height: 650px) {
  .music-profile.music-profile--time {
    max-height: min(760px, calc(100dvh - 34px));
    overflow: hidden;
  }
  .music-profile--time .profile-shell {
    max-height: min(760px, calc(100dvh - 34px));
    overflow: hidden;
    padding: 20px 26px 16px;
  }
  .music-profile--time .profile-close { top: 15px; right: 17px; width: 39px; height: 39px; }
  .profile-time-hero { min-height: 122px; gap: 18px; padding: 1px 58px 14px 2px; }
  .profile-orbit { flex-basis: 78px; width: 78px; height: 78px; }
  .profile-orbit span { font-size: 32px; }
  .profile-time-hero h2 { margin-top: 4px; font-size: 28px; }
  .profile-time-hero p:not(.profile-kicker) { font-size: 13px; }
  .profile-status { margin-top: 7px; font-size: 12px; }
  .profile-summary { gap: 8px; margin-bottom: 10px; }
  .profile-stat { min-height: 76px; padding: 10px 12px 9px; border-radius: 15px; }
  .profile-stat strong { font-size: 24px; }
  .profile-stat span { margin-top: 2px; font-size: 12px; }
  .profile-card { margin-top: 9px; padding: 12px 15px; border-radius: 17px; }
  .profile-card h3 { font-size: 18px; }
  .profile-card .profile-tip { margin-top: 3px; font-size: 12px; line-height: 1.4; }
  .profile-earn { font-size: 12px; }
  .profile-timeline { margin: 9px 0 0; }
  .profile-event { padding-bottom: 7px; }
  .profile-event:nth-child(n+3) { display: none; }
  .profile-event b { font-size: 13px; }
  .profile-event span, .profile-event em { font-size: 11px; }
  .profile-actions { grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
  .profile-action { min-height: 55px; gap: 7px; padding: 8px 9px; border-radius: 14px; }
  .profile-action svg { flex-basis: 18px; width: 18px; height: 18px; }
  .profile-action span { font-size: 13px; }
  .profile-action small { display: none; }
  .profile-level-card { margin-top: 9px; padding: 12px 15px 11px; border-radius: 18px; }
  .profile-level-card::after { right: 13px; font-size: 69px; }
  .profile-level-head h3 { margin: 2px 0; font-size: 20px; }
  .profile-level-head h3 span { min-width: 35px; height: 21px; margin-right: 5px; font-size: 10px; vertical-align: 2px; }
  .profile-level-head p { font-size: 12px; }
  .profile-level-head > strong { font-size: 23px; }
  .profile-level-progress { height: 6px; margin-top: 9px; }
  .profile-level-next { margin-top: 6px; font-size: 11px; }
  .profile-growth-stats { gap: 6px; margin-top: 10px; }
  .profile-growth-stats > div { padding: 7px 5px 6px; border-radius: 11px; }
  .profile-growth-stats b { font-size: 15px; }
  .profile-growth-stats span { margin-top: 2px; font-size: 10px; }
  .profile-level-rail { gap: 7px; margin-top: 10px; }
  .profile-level-rail span { flex-basis: 63px; gap: 3px; font-size: 10px; }
  .profile-level-rail i { width: 21px; height: 21px; font-size: 10px; }
  .profile-footnote { margin-top: 7px; font-size: 10px; }
}

@media (max-width: 620px) {
  .music-profile.music-profile--time { width: min(100vw - 22px, 620px); max-height: calc(100dvh - 22px); border-radius: 24px; }
  .music-profile--time .profile-shell { max-height: calc(100dvh - 22px); padding: 22px 18px; }
  .music-profile--time .profile-close { top: 15px; right: 15px; width: 39px; height: 39px; }
  .profile-time-hero { min-height: 144px; gap: 16px; padding: 8px 42px 18px 2px; }
  .profile-orbit { flex-basis: 79px; width: 79px; height: 79px; }
  .profile-orbit span { font-size: 32px; }
  .profile-time-hero h2 { font-size: 25px; }
  .profile-time-hero p:not(.profile-kicker) { font-size: 13px; }
  .profile-summary { gap: 7px; }
  .profile-stat { min-height: 83px; padding: 12px 10px; border-radius: 15px; }
  .profile-stat strong { font-size: 24px; }
  .profile-stat span { font-size: 12px; }
  .profile-card { padding: 15px; }
  .profile-level-card { padding: 16px 14px 13px; }
  .profile-level-head h3 { font-size: 22px; }
  .profile-growth-stats { gap: 5px; }
  .profile-growth-stats > div { padding-inline: 4px; }
  .profile-growth-stats b { font-size: 16px; }
  .profile-growth-stats span { font-size: 10px; }
}

@media (max-width: 390px) {
  .profile-actions { grid-template-columns: 1fr; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-fields button { width: 100%; }
}
