:root {
  color-scheme: light;
  --otv-brand: #f95862;
  --otv-brand-deep: #e94654;
  --otv-ink: #20232d;
  --otv-muted: #8b8f9b;
  --otv-line: #e9e9ed;
  --otv-page: #f7f7f8;
  --otv-panel: #fff;
  --otv-soft: #f4f4f6;
  --otv-dark: #242635;
  --otv-shadow: 0 20px 60px rgba(35, 38, 52, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--otv-page); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(249, 88, 98, .06), transparent 25%),
    var(--otv-page);
  color: var(--otv-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.member-header {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--otv-brand);
  text-decoration: none;
}
.brand-logo { display: block; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; object-fit: contain; }
.brand strong { font-size: 29px; font-weight: 850; letter-spacing: -.08em; line-height: 1; }
.brand > span:last-child { margin-left: 8px; color: #666b78; font-size: 14px; }
.brand-mark { display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.brand-mark i { display: block; width: 0; height: 0; margin-left: 2px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
.back-link { color: #686d78; font-size: 14px; text-decoration: none; transition: color .18s ease; }
.back-link:hover { color: var(--otv-brand); }

.member-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 72px; }
.auth-card {
  display: grid;
  grid-template-columns: minmax(420px, .98fr) minmax(360px, .82fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(34, 36, 49, .07);
  border-radius: 16px;
  background: var(--otv-panel);
  box-shadow: var(--otv-shadow);
}
.auth-main { padding: 66px clamp(40px, 6vw, 84px) 50px; }
.auth-heading .eyebrow, .eyebrow { display: block; color: var(--otv-brand); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.auth-heading h1 { margin: 12px 0 10px; color: #1e212b; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.04em; line-height: 1.14; }
.auth-heading p { max-width: 390px; margin: 0; color: var(--otv-muted); font-size: 14px; line-height: 1.75; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 39px; padding: 4px; border-radius: 8px; background: #f0f0f2; }
.auth-tabs button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #9699a3; font-size: 14px; }
.auth-tabs button.is-active { background: #fff; color: var(--otv-ink); box-shadow: 0 2px 9px rgba(30, 34, 49, .09); font-weight: 700; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-form label { display: grid; gap: 8px; color: #555a68; font-size: 13px; font-weight: 600; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #dfe0e5; border-radius: 7px; outline: 0; background: #fff; color: var(--otv-ink); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-form input::placeholder { color: #b0b2ba; }
.auth-form input:focus { border-color: var(--otv-brand); box-shadow: 0 0 0 3px rgba(249, 88, 98, .11); }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 57px; }
.password-toggle { position: absolute; top: 50%; right: 12px; padding: 3px; border: 0; background: transparent; color: #a2a5ae; font-size: 12px; transform: translateY(-50%); }
.password-toggle:hover { color: var(--otv-brand); }
.primary-button, .secondary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .18s ease, filter .18s ease, background .18s ease; }
.primary-button { border: 0; background: var(--otv-brand); color: #fff; box-shadow: 0 7px 18px rgba(249, 88, 98, .18); }
.primary-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.auth-form .primary-button { width: 100%; margin-top: 5px; }
.form-hint { margin: 1px 0 0; color: #9a9da7; font-size: 12px; text-align: center; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--otv-brand); font-size: inherit; }
.text-button:hover { text-decoration: underline; }
.form-message { min-height: 19px; margin: 14px 0 0; color: var(--otv-brand-deep); font-size: 13px; line-height: 1.5; }

.auth-benefits { position: relative; overflow: hidden; padding: 50px 48px; background: linear-gradient(145deg, #2b2e40 0%, #222433 65%, #191b27 100%); color: #fff; isolation: isolate; }
.auth-benefits::before { position: absolute; top: -110px; right: -70px; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255, 255, 255, .025), 0 0 0 62px rgba(255, 255, 255, .016); content: ""; }
.benefit-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .66); font-size: 12px; letter-spacing: .08em; }
.benefit-logo { display: block; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 11px; object-fit: contain; }
.benefit-copy { position: relative; z-index: 1; margin-top: 78px; }
.benefit-copy .eyebrow { color: #ff9aa0; }
.benefit-copy h2 { margin: 14px 0 13px; font-size: clamp(29px, 3.4vw, 44px); letter-spacing: -.05em; line-height: 1.22; }
.benefit-copy p { max-width: 310px; margin: 0; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.8; }
.benefit-list { position: relative; z-index: 1; display: grid; gap: 16px; margin-top: 42px; }
.benefit-item { display: flex; align-items: center; gap: 12px; }
.benefit-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 154, 160, .45); border-radius: 50%; color: #ff9aa0; font-size: 10px; font-weight: 800; }
.benefit-item strong, .benefit-item small { display: block; }
.benefit-item strong { font-size: 13px; font-weight: 650; }
.benefit-item small { margin-top: 3px; color: rgba(255, 255, 255, .51); font-size: 11px; }
.benefit-orb { position: absolute; right: -84px; bottom: -110px; width: 270px; height: 270px; border: 1px solid rgba(255, 154, 160, .16); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255, 154, 160, .025), 0 0 90px rgba(249, 88, 98, .2); }

.account-view { padding-top: 9px; }
.account-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.account-heading h1 { margin: 9px 0 7px; font-size: 34px; letter-spacing: -.04em; }
.account-heading p { margin: 0; color: var(--otv-muted); font-size: 14px; }
.account-back { margin-bottom: 7px; }
.account-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.status-card, .plan-card { padding: 30px; border: 1px solid var(--otv-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(35, 38, 52, .05); }
.status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-kicker { color: var(--otv-brand); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.status-head h2, .plan-card h2 { margin: 9px 0 5px; font-size: 24px; letter-spacing: -.03em; }
.status-head p { margin: 0; color: var(--otv-muted); font-size: 13px; }
.membership-badge { padding: 7px 11px; border-radius: 999px; background: #f0f0f2; color: #858995; font-size: 12px; font-weight: 700; white-space: nowrap; }
.membership-badge.is-active { background: #fff0f1; color: var(--otv-brand-deep); }
.status-body { margin: 28px 0; padding: 22px; border-radius: 10px; background: #f8f8fa; }
.status-body strong { font-size: 18px; }
.status-body p { margin: 9px 0 0; color: #777c88; line-height: 1.65; }
.expiry { color: var(--otv-brand-deep) !important; font-size: 13px; }
.status-actions { display: flex; gap: 10px; }
.secondary-button { border: 1px solid var(--otv-line); background: #fff; color: #6b707b; }
.secondary-button:hover { background: #fafafa; }
.plan-card ul { display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; }
.plan-card li { position: relative; padding-left: 26px; color: #555a68; font-size: 13px; line-height: 1.55; }
.plan-card li::before { position: absolute; left: 0; color: var(--otv-brand); content: "✓"; font-weight: 800; }
.payment-note { margin-top: 24px; padding: 16px; border: 1px solid #f7d9db; border-radius: 10px; background: #fff8f8; }
.payment-note strong { color: var(--otv-brand-deep); font-size: 13px; }
.payment-note p { margin: 8px 0 0; color: #8e7d80; font-size: 12px; line-height: 1.65; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.rule-grid article { padding: 22px; border: 1px solid var(--otv-line); border-radius: 12px; background: rgba(255,255,255,.72); }
.rule-grid span { color: var(--otv-brand); font-size: 12px; font-weight: 800; }
.rule-grid h3 { margin: 10px 0 8px; font-size: 16px; }
.rule-grid p { margin: 0; color: #858994; font-size: 13px; line-height: 1.7; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .member-header, .member-shell { width: min(100% - 32px, 620px); }
  .member-shell { padding-top: 22px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-main { padding: 42px 30px 36px; }
  .auth-benefits { min-height: 430px; padding: 34px 30px 40px; }
  .benefit-copy { margin-top: 54px; }
  .benefit-list { grid-template-columns: 1fr 1fr; gap: 18px 13px; }
  .benefit-item { align-items: flex-start; }
  .benefit-item small { line-height: 1.45; }
  .account-grid, .rule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .member-header { min-height: 62px; }
  .member-header, .member-shell { width: min(100% - 24px, 620px); }
  .brand-logo { width: 34px; height: 34px; border-radius: 8px; }
  .brand > span:last-child { display: none; }
  .back-link { font-size: 13px; }
  .auth-main { padding: 34px 20px 28px; }
  .auth-heading h1 { font-size: 31px; }
  .auth-tabs { margin-top: 30px; }
  .auth-benefits { min-height: 0; padding: 30px 20px 36px; }
  .benefit-copy { margin-top: 46px; }
  .benefit-copy h2 { font-size: 31px; }
  .benefit-list { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .status-card, .plan-card { padding: 22px 18px; }
  .status-head, .account-heading { align-items: flex-start; flex-direction: column; }
  .account-heading { gap: 13px; }
  .status-actions { flex-direction: column; }
  .status-actions > * { width: 100%; }
}

.personal-area { margin-top: 22px; }
.personal-tabs { display: flex; gap: 22px; margin-bottom: 14px; border-bottom: 1px solid var(--otv-line); }
.personal-tabs button { position: relative; padding: 0 0 12px; border: 0; background: transparent; color: #8b8f99; font: inherit; font-size: 14px; cursor: pointer; }
.personal-tabs button[aria-selected="true"] { color: var(--otv-brand-deep); font-weight: 700; }
.personal-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--otv-brand); content: ""; }
.personal-panel { padding: 24px 26px 26px; border: 1px solid var(--otv-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(35, 38, 52, .05); }
.personal-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.personal-panel-heading h2 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.03em; }
.personal-panel-heading .text-button { padding: 0; border: 0; background: transparent; color: var(--otv-muted); font: inherit; font-size: 12px; cursor: pointer; }
.personal-panel-heading .text-button:hover { color: var(--otv-brand); }
.personal-list { display: grid; gap: 10px; margin-top: 20px; }
.personal-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 8px; border: 1px solid #f0f0f2; border-radius: 10px; background: #fafafa; }
.personal-item-link { display: contents; color: inherit; text-decoration: none; }
.personal-poster { width: 64px; height: 72px; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg, #e8c09e, #b26f6c); }
.personal-poster img { width: 100%; height: 100%; object-fit: cover; }
.personal-item-copy { min-width: 0; }
.personal-item-copy strong, .personal-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-item-copy strong { color: #292b34; font-size: 14px; }
.personal-item-copy small { margin-top: 5px; color: #8b8f99; font-size: 12px; }
.personal-progress { margin-top: 10px; width: min(260px, 100%); height: 4px; overflow: hidden; border-radius: 999px; background: #e8e8eb; }
.personal-progress i { display: block; height: 100%; border-radius: inherit; background: var(--otv-brand); }
.personal-item-action { padding: 7px 10px; border: 1px solid #e7e7eb; border-radius: 7px; background: #fff; color: var(--otv-brand-deep); font: inherit; font-size: 11px; cursor: pointer; }
.personal-item-action:hover { border-color: #ffc7ca; background: #fff4f4; }
.personal-empty { margin: 24px 0 2px; color: #9699a2; font-size: 13px; text-align: center; }
@media (max-width: 620px) {
  .personal-panel { padding: 20px 16px; }
  .personal-item { grid-template-columns: 52px minmax(0, 1fr); }
  .personal-poster { width: 52px; height: 62px; }
  .personal-item-action { grid-column: 2; justify-self: start; }
}

.member-auth-options { display: grid; gap: 10px; margin-top: 28px; }
.google-login-button { position: relative; overflow: hidden; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1px solid #dadce0; border-radius: 7px; background: #fff; color: #3c4043; font-size: 14px; font-weight: 700; box-shadow: 0 1px 2px rgba(60, 64, 67, .12); }
.google-login-button:hover:not(:disabled) { background: #f8faff; border-color: #b9c5df; }
.google-login-button:disabled { cursor: not-allowed; opacity: .62; }
.google-g-mark { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.auth-provider-note { margin: 0; color: var(--otv-muted); font-size: 12px; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; color: #a0a2aa; font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--otv-line); content: ""; }
.code-request-row { display: grid; gap: 8px; }
.code-request-row .primary-button { width: 100%; }
.code-step { display: grid; gap: 12px; margin-top: 2px; }
.code-step label { display: grid; gap: 8px; color: #555a68; font-size: 13px; font-weight: 600; }
.code-step input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #dfe0e5; border-radius: 7px; outline: 0; background: #fff; color: var(--otv-ink); font-size: 18px; letter-spacing: .2em; text-align: center; }
.code-step input:focus { border-color: var(--otv-brand); box-shadow: 0 0 0 3px rgba(249, 88, 98, .11); }
.resend-button { justify-self: center; padding: 0; border: 0; background: transparent; color: var(--otv-brand-deep); font-size: 12px; }
.resend-button:disabled { color: var(--otv-muted); cursor: wait; }
.form-message[data-state="error"] { color: var(--otv-brand-deep); }

.google-login-button.is-loading { pointer-events: none; }
