.profile-page { overflow-x: hidden; }
.profile-main { padding-bottom: 40px; }
.profile-site-header { width: min(1480px, calc(100% - 48px)); }
.profile-site-header .account-cta { flex: 0 0 auto; }
.profile-back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 800 10px/1 var(--mono); letter-spacing: .04em; text-decoration: none; }
.profile-back-link span:first-child { color: var(--coral); font-size: 17px; }
.profile-back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(34px, 5vw, 82px); align-items: center; min-height: 660px; padding: 78px 0 64px; }
.profile-hero-copy { min-width: 0; }
.profile-hero h1 { max-width: 940px; margin: 22px 0 0; font: 700 clamp(52px, 6.4vw, 94px)/.9 var(--display); letter-spacing: -.065em; }
.profile-hero h1 em { color: var(--coral); font-style: italic; font-weight: 500; }
.profile-hero .lede { max-width: 760px; }
.profile-console { max-width: 900px; }
.profile-console .profile-form-note { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-queue-card { position: relative; min-height: 430px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(150deg, #14201c 0%, #0c1210 58%, #263a31 100%); box-shadow: 0 32px 90px rgba(20,32,28,.22); color: var(--paper); transform: none; }
.profile-queue-card::before { content: ""; position: absolute; inset: -25%; background: radial-gradient(circle at 50% 40%, rgba(255,118,92,.24), transparent 32%), radial-gradient(circle at 12% 82%, rgba(217,255,88,.16), transparent 26%); }
.profile-queue-orbit { position: absolute; top: 42px; left: 50%; width: 208px; height: 208px; border-radius: 50%; transform: translateX(-50%); }
.profile-queue-ring { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: profile-queue-spin 8s linear infinite; will-change: transform; }
.profile-queue-ring i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border: 3px solid #101713; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(217,255,88,.55); transform: translateX(-50%); }
.profile-queue-ring-outer { inset: 0; animation-duration: 10s; animation-delay: -3.2s; }
.profile-queue-ring-middle { inset: 28px; border-style: dashed; border-color: rgba(255,255,255,.18); animation-duration: 8s; animation-direction: reverse; animation-delay: -5.1s; }
.profile-queue-ring-middle i { background: var(--coral); box-shadow: 0 0 12px rgba(255,118,92,.55); }
.profile-queue-ring-inner { inset: 56px; border-color: rgba(38,244,225,.28); animation-duration: 6s; animation-delay: -1.7s; }
.profile-queue-ring-inner i { width: 10px; height: 10px; top: -5px; border-width: 2px; background: var(--sky); box-shadow: 0 0 12px rgba(220,238,250,.6); }
.profile-queue-logo { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 19px; color: white; background: radial-gradient(circle at 45% 35%, #21302c 0, #080b0a 66%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 42px rgba(38,244,225,.16); transform: translate(-50%, -50%); }
.profile-queue-logo svg { width: 30px; height: 30px; filter: drop-shadow(-2px 0 #20eee0) drop-shadow(2px 0 #ff315c); transform: none; }
.profile-queue-copy { position: absolute; right: 34px; bottom: 32px; left: 34px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; }
.profile-queue-copy > span, .profile-queue-copy > strong { grid-column: 1 / -1; }
.profile-queue-copy > span { color: var(--coral); font: 800 9px/1 var(--mono); letter-spacing: .13em; }
.profile-queue-copy > strong { margin-bottom: 10px; font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.profile-queue-copy small { color: #dce9e3; font: 700 10px/1 var(--mono); }
.profile-queue-copy b { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); }
.profile-queue-copy b::after { content: ""; display: block; width: 34%; height: 100%; border-radius: inherit; background: var(--accent); }
.profile-page-card { width: min(1180px, 100%); margin-top: 28px; }
.profile-result-card.profile-page-card, .profile-job-panel.profile-page-card { padding: clamp(24px, 3vw, 38px); }
.profile-page .profile-video-list,
.profile-page .profile-job-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 6px;
}
.profile-page .profile-video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: min(690px, 68vh); }
.profile-page .profile-video-row { grid-template-columns: auto 88px minmax(0, 1fr) auto; padding: 12px; }
.profile-page .profile-video-thumb { width: 88px; height: 88px; }
.profile-page .profile-job-list { max-height: min(520px, 58vh); }
.profile-explainer, .profile-faq { position: relative; z-index: 1; padding-top: 86px; }
.profile-permission { max-width: 820px; margin: 28px 0 0; padding: 18px 20px; border-left: 3px solid var(--coral); color: var(--muted); background: rgba(255,254,250,.72); font-size: 13px; line-height: 1.6; }
.profile-footer { width: min(1480px, calc(100% - 48px)); }

@keyframes profile-queue-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .profile-queue-ring { animation: none; }
}

html:is([lang="zh-CN"], [lang="ja"], [lang="ko"], [lang="th"]) .profile-hero h1 { letter-spacing: -.035em; line-height: 1; }

@media (max-width: 1050px) {
  .profile-site-header, .profile-footer { width: min(100% - 40px, 900px); }
  .profile-back-link { display: none; }
  .profile-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .profile-queue-card { width: min(100%, 620px); min-height: 340px; margin: 0 auto; transform: none; }
  .profile-queue-orbit { top: 28px; width: 180px; height: 180px; }
  .profile-queue-ring-middle { inset: 24px; }
  .profile-queue-ring-inner { inset: 48px; }
  .profile-page .profile-video-list { grid-template-columns: 1fr; }
}

@media (max-width: 1350px) {
  .profile-back-link { display: none; }
}

@media (max-width: 620px) {
  .profile-site-header, .profile-main, .profile-footer { width: calc(100% - 24px); max-width: calc(100% - 24px); }
  .profile-site-header { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .profile-site-header .header-right { display: grid; grid-template-columns: auto 88px; justify-content: end; gap: 6px; }
  .profile-site-header .account-cta { min-width: 0; padding-inline: 8px; }
  .profile-site-header .account-cta-arrow { display: none; }
  .profile-site-header .language-picker select { width: 88px; min-width: 0; padding-left: 8px; }
  .profile-hero { gap: 28px; padding: 42px 0 34px; }
  .profile-hero-copy, .profile-console { width: 100%; max-width: 100%; }
  .profile-hero h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(39px, 11vw, 50px); }
  .profile-console .field-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .profile-console .field-heading span { max-width: 100%; line-height: 1.35; text-align: left; white-space: normal; }
  .profile-queue-card { min-height: 310px; border-radius: 20px; }
  .profile-queue-orbit { width: 156px; height: 156px; }
  .profile-queue-ring-middle { inset: 21px; }
  .profile-queue-ring-inner { inset: 42px; }
  .profile-queue-logo { width: 56px; height: 56px; border-radius: 17px; }
  .profile-queue-logo svg { width: 26px; height: 26px; }
  .profile-queue-copy { right: 22px; bottom: 22px; left: 22px; }
  .profile-page .profile-video-row { grid-template-columns: auto 64px minmax(0, 1fr); }
  .profile-page .profile-video-thumb { width: 64px; height: 64px; }
  .profile-explainer, .profile-faq { padding-top: 58px; }
}
