/* X视频 profile roots 53040:24907 / 53040:24997 / 53040:25096.
   Live text requires the licensed PingFang SC webfont supplied by the host.
   Alimama wallet headings use the original outlined SVGs, not a substitute font. */
* { box-sizing: border-box; }
.person-center-page > .mobile-tabbar { display: none; }

@media (min-width: 769px) {
.person-center-page { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; margin: 0; background: #010406; color: #fff; font-family: "PingFang SC", sans-serif; }
.desktop-profile-main { position: relative; display: flex; width: min(1200px, calc(100% - 48px)); min-width: 0; flex: 1 0 auto; flex-direction: column; gap: 24px; margin: 0 auto; padding: 24px 0; }
.desktop-profile-main > .desktop-profile-back { height: 36px; flex: none; gap: 12px; margin: 0; padding: 0; color: #fff; }
.desktop-profile-main > .desktop-profile-back img { opacity: 1; }
.desktop-profile-main > .desktop-profile-back i { display: none; }
.desktop-profile-user { position: relative; display: grid; min-height: 212px; grid-template-columns: 90px minmax(0, 1fr) auto; grid-template-rows: 90px 50px; align-items: center; gap: 24px 18px; padding: 24px; border-radius: 12px; background: #0e1012; }
/* The source separator is a zero-height layout item with a 0.5px stroke. */
.desktop-profile-user::after { position: absolute; top: 126px; right: 24px; left: 24px; height: 0; border-top: .5px solid #ffffff1a; content: ""; pointer-events: none; }
.desktop-profile-user .mobile-profile-user__avatar { position: relative; display: block; width: 90px; height: 90px; overflow: hidden; border: 0; border-radius: 50%; background: #161719; }
.desktop-profile-user .mobile-profile-user__avatar > img:first-child { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.desktop-profile-user .mobile-profile-user__avatar > img[data-src] { object-fit: cover; }
.desktop-profile-user .mobile-profile-user__avatar img[data-image-state="loading"] { visibility: hidden; }
.desktop-profile-user .mobile-profile-user__copy { min-width: 0; align-self: center; }
.desktop-profile-user .mobile-profile-user__name-row { display: flex; min-width: 0; align-items: center; gap: 12px; }
.desktop-profile-user .mobile-profile-user__name-row strong { max-width: 360px; overflow: hidden; color: #fff; font-size: 24px; font-weight: 500; line-height: 32px; text-overflow: ellipsis; white-space: nowrap; }
.desktop-profile-user .mobile-profile-user__membership { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 2px; }
.desktop-profile-user .mobile-profile-user__vip { width: 32px; height: 32px; padding: 4px; opacity: 1; }
.desktop-profile-user .mobile-profile-user__member-tip { color: #ffffff8c; font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.desktop-profile-user .mobile-profile-user__member-tip:empty { display: none; }
.desktop-profile-user .mobile-profile-user__id-row { display: flex; min-width: 0; align-items: center; gap: 10px; margin-top: 6px; color: #ffffff8c; font-size: 16px; font-weight: 400; line-height: 22px; }
.desktop-profile-user .mobile-profile-user__id-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-profile-user .mobile-profile-user__id-row button { height: 22px; flex: none; padding: 2px 8px; border: 0; border-radius: 999px; background: #303030; color: #ffffff8c; font: 400 12px/18px "PingFang SC", sans-serif; cursor: pointer; }
.desktop-profile-user .mobile-profile-user__session { display: inline-flex; width: 96px; height: 36px; box-sizing: border-box; align-items: center; justify-content: center; overflow: hidden; padding: 4px 20px; border: 0; border-radius: 18px; background: #ffffff1a; color: #fff; font: 400 14px/20px "PingFang SC", sans-serif; white-space: nowrap; cursor: pointer; }
.desktop-profile-user .mobile-profile-user__session[data-session-state="login"] { background: var(--color-brand-primary); }
.desktop-profile-user .mobile-profile-user__session:disabled { cursor: wait; }
.desktop-profile-user .mobile-profile-stats { grid-column: 1 / -1; display: grid; height: 50px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: stretch; color: inherit; text-decoration: none; }
.desktop-profile-user .mobile-profile-stats div { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; }
.desktop-profile-user .mobile-profile-stats strong { color: #fff; font-size: 18px; font-weight: 600; line-height: 24px; }
.desktop-profile-user .mobile-profile-stats span { color: #ffffffb2; font-size: 16px; font-weight: 400; line-height: 22px; }
.desktop-profile-user .mobile-profile-stats div:not(:last-child) span { opacity: .8999999762; }

.person-center-page .mobile-profile-wallets { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 0; }
/* Original Figma background rectangles preserve the gradient transform and its
   80% paint opacity without dimming the live text, artwork or buttons. */
.person-center-page .mobile-profile-wallet { position: relative; display: flex; min-width: 0; height: 80px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 30px; border: 0; border-radius: 12px; background: url('/static/images/profile-20261019/wallet-member.svg') center / 100% 100% no-repeat; backdrop-filter: blur(8px); color: #fff; text-decoration: none; }
.person-center-page .mobile-profile-wallet--coins { background-image: url('/static/images/profile-20261019/wallet-coins.svg'); }
.person-center-page .mobile-profile-wallet__frame { display: none; }
.person-center-page .mobile-profile-wallet__copy { display: flex; min-width: 0; max-width: calc(100% - 90px); align-items: center; gap: 10px; }
/* Keep the exported ink at its intrinsic aspect ratio inside the source text box. */
.person-center-page .mobile-profile-wallet__title { display: flex; width: 112px; height: 20px; flex: 0 0 112px; align-items: center; justify-content: center; }
.person-center-page .mobile-profile-wallet__title picture, .person-center-page .mobile-profile-wallet__title img { display: block; flex: none; }
.person-center-page .mobile-profile-wallet__title img { width: 110px; height: auto; }
.person-center-page .mobile-profile-wallet small { display: block; min-width: 0; overflow: hidden; color: #fff; font-size: 18px; font-weight: 400; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.person-center-page .mobile-profile-wallet small b { font-weight: 400; }
.person-center-page .mobile-profile-wallet__benefit { position: absolute; top: -37px; right: 30px; display: flex; width: 80px; flex-direction: column; align-items: center; }
.person-center-page .mobile-profile-wallet__art { position: relative; display: block; width: 80px; height: 80px; flex: 0 0 80px; margin-bottom: -15px; }
.person-center-page .mobile-profile-wallet__art img { display: block; width: 80px; height: 80px; object-fit: contain; }
.person-center-page .mobile-profile-wallet--member .mobile-profile-wallet__art img { position: relative; top: 3.75px; }
/* 53038:21802 is already rotated. Its exact bounds derive from the source's
   80px sides, -15.000000120055855deg rotation and x=11.705078125, y=-8. */
.person-center-page .mobile-profile-wallet--coins .mobile-profile-wallet__art img { position: absolute; top: -8px; left: -9.0004456451194px; width: 97.9795898298592px; height: 97.9795898298592px; }
.person-center-page .mobile-profile-wallet em { display: flex; width: 66px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border-radius: 100px; background: #fff; color: #292929; font-size: 14px; font-style: normal; font-weight: 500; line-height: 20px; white-space: nowrap; }

.person-center-page .mobile-profile-download { display: flex; min-width: 0; height: 72px; align-items: center; justify-content: space-between; padding: 16px 24px; border-radius: 12px; background: linear-gradient(180deg, #1f1f20, #151415); color: #fff; text-decoration: none; }
.person-center-page .mobile-profile-download__brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.person-center-page .mobile-profile-download__icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 7.2px; object-fit: contain; }
.person-center-page .mobile-profile-download__copy { display: flex; min-width: 0; align-items: center; gap: 12px; }
.person-center-page .mobile-profile-download strong { display: flex; align-items: center; gap: 2px; background: linear-gradient(180deg, #fff, #dbe0eb); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; font-weight: 500; line-height: 28px; white-space: nowrap; }
.person-center-page .mobile-profile-download strong em { background: linear-gradient(180deg, #fff88a, #f8b406); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.person-center-page .mobile-profile-download small { color: #ffffff8c; font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.person-center-page .mobile-profile-download__button { display: flex; width: 90px; height: 32px; flex: 0 0 90px; align-items: center; justify-content: center; border: 1px solid #ffd25fbf; border-radius: 100px; background: linear-gradient(180deg, #fff 0%, #ffeab6 52.4999976158%, #ffd25f 100%); box-shadow: 0 0 20px #ffc32a38, 0 0 15px #ffc32a78; color: #292929; font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }

.person-center-page .mobile-profile-library { display: flex; min-width: 0; flex-direction: column; gap: 32px; }
.person-center-page .mobile-profile-library__header { display: flex; min-width: 0; height: 40px; align-items: center; justify-content: space-between; }
.person-center-page .mobile-profile-library__tabs { display: flex; flex: none; gap: 12px; height: 40px; background: #0e1012; }
.person-center-page .mobile-profile-library__tabs button { position: relative; min-width: 84px; height: 40px; padding: 0 24px; border: 0; background: none; color: #ffffff8c; font: 400 18px/24px "PingFang SC", sans-serif; cursor: pointer; }
.person-center-page .mobile-profile-library__tabs button.is-active { color: #fff; font-weight: 600; }
.person-center-page .mobile-profile-library__tabs button.is-active::after { position: absolute; bottom: 0; left: 50%; width: 16px; height: 3px; transform: translateX(-50%); border-radius: 12px; background: var(--color-brand-primary); content: ""; }
.person-center-page .mobile-profile-library__filters { display: flex; flex: none; gap: 12px; }
.person-center-page .mobile-profile-library__filters button { width: 80px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: #ffffff0d; color: #ffffff8c; font: 500 16px/22px "PingFang SC", sans-serif; cursor: pointer; }
.person-center-page .mobile-profile-library__filters button.is-active { background: var(--color-brand-primary); color: #fff; }
.person-center-page .mobile-profile-grid { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
/* This source's 32px row gap differs from the shared catalogue/search grids. */
.person-center-page .mobile-profile-library .mobile-profile-grid.pc-short-drama-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 12px; }
.person-center-page .mobile-profile-card { position: relative; min-width: 0; }
.person-center-page .mobile-profile-card__action { position: absolute; z-index: 3; top: 8px; right: 8px; display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; appearance: none; background: rgba(3,6,8,.7); box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; backdrop-filter: blur(6px); }
.person-center-page .mobile-profile-card__action:disabled { cursor: wait; opacity: .65; }
.person-center-page .mobile-profile-card__unlike .mobile-like-motion-graphic { width: 38px; height: 38px; flex-basis: 38px; }
.person-center-page .mobile-profile-card__like-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.person-center-page .mobile-profile-card__unfavorite .favorite-motion--card { --favorite-motion-icon-size: 27px; }
.person-center-page .mobile-profile-loading { min-height: 428px; padding: 100px 0; color: #ffffff8c; font-size: 14px; line-height: 20px; text-align: center; }
.person-center-page .mobile-profile-empty { display: flex; min-height: 428px; flex-direction: column; align-items: center; padding: 100px 0; color: #fff; text-align: center; }
.person-center-page .mobile-profile-empty[hidden],
.person-center-page .mobile-profile-loading[hidden],
.person-center-page .mobile-profile-grid[hidden] { display: none; }
.person-center-page .mobile-profile-empty img { display: block; width: 120px; height: 120px; object-fit: contain; }
.person-center-page .mobile-profile-empty strong { display: flex; max-width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: #fff; font-size: 16px; font-weight: 600; line-height: 22px; }
.person-center-page .mobile-profile-empty strong::before,
.person-center-page .mobile-profile-empty strong::after { flex: 0 0 10px; height: 10px; background: center / contain no-repeat; content: ""; }
.person-center-page .mobile-profile-empty strong::before { background-image: url('/static/images/profile-20261018/53040-25176.png'); }
.person-center-page .mobile-profile-empty strong::after { background-image: url('/static/images/profile-20261018/53040-25178.png'); }
.person-center-page .mobile-profile-empty p { margin: 8px 0; color: #ffffff59; font-size: 14px; font-weight: 500; line-height: 20px; }
.person-center-page .mobile-profile-empty button { min-width: 80px; height: 32px; padding: 0 12px; border: .5px solid var(--color-brand-primary); border-radius: 999px; background: transparent; color: var(--color-brand-primary); font: 600 14px/20px "PingFang SC", sans-serif; cursor: pointer; }
.person-center-page .mobile-pagination { height: 56px; flex: none; justify-content: center; gap: 12px; margin: 0; padding: 12px 0; }
.person-center-page .mobile-pagination > :is(a, button, span) { border-color: #ffffff1a; color: #fff; font: 400 14px/22px "PingFang SC", sans-serif; }
.person-center-page .mobile-pagination > .is-current { border-color: var(--color-brand-primary); }
.person-center-page .mobile-pagination > :is(.mobile-pagination__arrow, .mobile-pagination__ellipsis) { border-color: transparent; }
.desktop-profile-main :is(a, button):focus-visible { outline: 2px solid var(--color-brand-primary); outline-offset: 2px; }
.desktop-profile-user .mobile-profile-stats:focus-visible { outline-offset: -2px; border-radius: 6px; }
.person-center-page .toast-stack { color: #222; }
}

/* Retain the existing desktop-UA narrow fallback until the viewport router swaps
   templates. It uses the same original H5 art and does not fetch on resize. */
@media (max-width: 768px) {
.person-center-page { min-width: 320px; min-height: 100%; margin: 0; overflow-x: hidden; background: #010406; color: #fff; font-family: "PingFang SC", sans-serif; }
.person-center-page .site-header,
.person-center-page > .site-footer,
.person-center-page .site-header__search-overlay,
.person-center-page .desktop-profile-back,
.person-center-page .to-top { display: none; }
.desktop-profile-main { position: relative; display: flex; width: 100%; min-height: 100vh; flex-direction: column; gap: 18px; margin: 0; padding: 24px 16px 112px; }
.desktop-profile-user { display: grid; min-height: 122px; grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-rows: 60px 44px; align-items: center; gap: 18px 12px; padding: 0; border-radius: 0; background: transparent; }
.desktop-profile-user .mobile-profile-stats { grid-column: 1 / -1; width: 100%; }
.person-center-page[data-profile-state="guest"] .mobile-profile-user__id-row > span { width: 160px; white-space: normal; }
.person-center-page > .mobile-tabbar { display: flex; }
}
