/* Player services share one calm paper surface across registration, recovery and support. */
.xj-player {
  margin: 0;
  min-height: 100svh;
  color: #263d36;
  background: #f5f1e8 url('/theme/landscape.svg') center top / cover fixed no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}
.xj-player .wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.xj-player .player-hero { text-align: center; padding: 12px 10px 22px; }
.xj-player .player-brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Songti SC', 'STSong', serif; font-size: 36px; font-weight: 700; color: #285c4f; text-decoration: none; letter-spacing: .14em; }
.xj-player .player-brand span { font-family: -apple-system, 'PingFang SC', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .12em; border-left: 1px solid #aa874e; padding-left: 12px; }
.xj-player .player-kicker { font-size: 12px; color: #7b6745; letter-spacing: .16em; margin: 8px 0 22px; }
.xj-player h1 { font-family: 'Songti SC', 'STSong', serif; font-size: clamp(25px, 4.5vw, 34px); line-height: 1.35; color: #263d36; margin: 0 0 12px; font-weight: 700; }
.xj-player .sub { font-size: 14px; color: #586b61; margin: 0 auto; max-width: 440px; }
.xj-player .player-nav { display: flex; padding: 5px; gap: 4px; margin: 0 0 20px; background: rgba(255,253,248,.85); border: 1px solid #ded9cb; border-radius: 12px; }
.xj-player .player-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; flex: 1; padding: 8px 4px; font-size: 14px; color: #496257; border-radius: 8px; text-decoration: none; }
.xj-player .player-nav a[aria-current='page'] { background: #285c4f; color: #fffdf7; font-weight: 600; }
.xj-player .player-card, .xj-player .notice, .xj-player .contact-box { padding: 26px; border: 1px solid #ded9cb; border-radius: 16px; background: rgba(255,253,248,.97); box-shadow: 0 10px 34px rgba(38,61,54,.06); margin: 0 0 18px; }
.xj-player .section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid #e6e1d6; }
.xj-player .section-heading > span, .xj-player .player-seal { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 44px; border: 1px solid #c5b186; border-radius: 8px 8px 14px 14px; font-family: 'Songti SC', serif; font-size: 21px; color: #8c6a32; background: #f5f0e4; }
.xj-player .section-heading h2, .xj-player .player-help h2 { margin: 0; font-size: 18px; color: #263d36; font-weight: 600; }
.xj-player .section-heading p { margin: 3px 0 0; font-size: 13px; color: #66766d; }
.xj-player .row { margin: 0 0 20px; min-width: 0; }
.xj-player label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #344f43; }
.xj-player input:not([type='hidden']) { width: 100%; min-width: 0; min-height: 48px; height: 48px; padding: 10px 13px; border: 1px solid #cfcfc0; border-radius: 8px; background: #fffefa; color: #263d36; font-size: 16px; line-height: 1.5; box-shadow: inset 0 1px 2px rgba(38,61,54,.03); }
.xj-player input[readonly] { background: #efeee5; color: #53695d; }
.xj-player input:focus { outline: 2px solid #285c4f; outline-offset: 2px; border-color: #285c4f; }
.xj-player :is(a,button):focus-visible { outline: 3px solid #aa874e; outline-offset: 3px; }
.xj-player .field-help, .xj-player .hint, .xj-player .invite-note { font-size: 12px; line-height: 1.65; color: #667368; margin: 6px 0 0; }
.xj-player .hint { min-height: 0; }
.xj-player .hint:empty { margin: 0; }
.xj-player .hint.err { color: #a33f36; }
.xj-player .hint.ok, .xj-player .invite-note { color: #285c4f; }
.xj-player .invite-note { margin: 0 0 7px; }
.xj-player .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.xj-player .captcha-row { display: flex; gap: 12px; align-items: center; }
.xj-player .captcha-row > input { flex: 1; width: 0; }
.xj-player .captcha-refresh { flex-shrink: 0; display: grid; place-items: center; padding: 0; min-width: 0; min-height: 54px; width: 170px; height: 54px; border: 1px solid #ded9cb; border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; }
.xj-player #captchaImg { display: block; width: 100%; height: 52px; border: 0; border-radius: 0; object-fit: contain; background: #fff; }
.xj-player button.submit, .xj-player #popupOk, .xj-player #confirmRegisterBtn { min-height: 48px; height: auto; width: 100%; margin: 4px 0 0; padding: 12px 16px; border: 1px solid #285c4f; border-radius: 9px; color: #fffdf7; background: #285c4f; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; cursor: pointer; box-shadow: 0 4px 12px rgba(40,92,79,.12); }
.xj-player button.submit:hover, .xj-player #popupOk:hover, .xj-player #confirmRegisterBtn:hover { background: #204c41; }
.xj-player button:disabled { opacity: .55; cursor: wait; }
.xj-player .security-note { font-size: 12px; text-align: center; color: #687367; margin: 14px 0 0; }
.xj-player .player-help { padding: 8px 12px 12px; }
.xj-player .player-help h2 { font-size: 15px; }
.xj-player .player-help p { margin: 6px 0 9px; font-size: 13px; color: #667368; }
.xj-player .player-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: #285c4f; text-underline-offset: 4px; }
.xj-player .notice { margin: 0; padding: 36px 24px; text-align: center; }
.xj-player .player-seal { margin: 0 auto 18px; }
.xj-player .notice-title { margin: 0; color: #285c4f; font-size: 22px; }
.xj-player .notice p { font-size: 14px; color: #667368; }
.xj-player .contact-box { display: none; border-top: 3px solid #aa874e; }
.xj-player .contact-label { margin: 0 0 12px; color: #596b5e; font-size: 14px; }
.xj-player #contactInfo { font-size: 19px; color: #285c4f; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.xj-player .popup-mask { display: none; position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(22,42,35,.55); z-index: 99999; overflow-y: auto; overscroll-behavior: contain; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
.xj-player .popup-box { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 360px; margin: 12vh auto 0; padding: 26px 22px; border: 1px solid #ded9cb; border-radius: 16px; background: #fffdf8; color: #263d36; text-align: center; box-shadow: 0 20px 70px rgba(10,28,20,.25); }
.xj-player .popup-title { font-family: 'Songti SC', serif; margin: 0 0 16px; font-size: 23px; font-weight: 600; color: #285c4f; }
.xj-player .popup-msg { margin-bottom: 20px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.xj-player .popup-actions { display: flex; gap: 10px; margin-top: 20px; }
.xj-player .popup-actions button { flex: 1; min-width: 0; }
.xj-player #cancelSecondCaptchaBtn { min-height: 48px; height: auto; margin: 4px 0 0; padding: 10px; background: #eeece2; color: #344f43; border: 1px solid #d4d4c6; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer; }
.xj-player #confirmRegisterBtn { font-size: 14px; padding: 10px; }
.xj-player #aliyunCaptchaElement { margin-top: 14px; }
@media (max-width: 480px) {
  .xj-player .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .xj-player .player-hero { padding-top: 0; }
  .xj-player .player-card, .xj-player .contact-box { padding: 20px 18px; }
  .xj-player .field-grid { grid-template-columns: 1fr; gap: 0; }
  .xj-player .captcha-row { gap: 9px; }
  .xj-player .captcha-refresh { width: 140px; }
  .xj-player .player-kicker { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .xj-player *, .xj-player *::before, .xj-player *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Compact registration: preserve field order, align every label to its control. */
.xj-register .wrap { max-width: 580px; padding-top: max(18px, env(safe-area-inset-top)); }
.xj-register .player-hero { padding: 0 0 16px; }
.xj-register .player-brand { font-size: 28px; }
.xj-register h1 { margin: 8px 0 0; font-size: 25px; }
.xj-register .register-form { padding: 22px; }
.xj-register .register-form .row { display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: 12px; margin-bottom: 14px; align-items: start; }
.xj-register .register-form label { grid-column: 1; grid-row: 1; display: flex; align-items: center; min-height: 44px; margin: 0; font-size: 14px; white-space: nowrap; }
.xj-register .register-form input:not([type='hidden']) { grid-column: 2; grid-row: 1; min-height: 44px; height: 44px; padding: 8px 10px; }
.xj-register .register-form .field-help, .xj-register .register-form .invite-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xj-register .register-form .hint { grid-column: 2; }
.xj-register .register-form .captcha-row { grid-column: 2; grid-row: 1; gap: 8px; min-width: 0; }
.xj-register .register-form .captcha-refresh { width: 116px; height: 44px; min-height: 44px; }
.xj-register .register-form #captchaImg { height: 42px; }
.xj-register .register-form .security-note { margin-top: 10px; }
@media (max-width: 480px) {
  .xj-register .wrap { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .xj-register .register-form { padding: 18px 12px; }
  .xj-register .register-form .row { grid-template-columns: 84px minmax(0, 1fr); column-gap: 8px; margin-bottom: 12px; }
  .xj-register .register-form label { font-size: 13px; }
  .xj-register .register-form input:not([type='hidden']) { padding: 8px 6px; font-size: 14px; }
  .xj-register .register-form .captcha-refresh { width: 88px; }
}
