
:root{--st-purple:#6d5dfc;--st-purple2:#8b5cf6;--st-text:#202334;--st-muted:#667085;--st-border:#e4e7ec;--st-bg:#f7f8fb}
.subtitle-page{background:var(--st-bg);color:var(--st-text)}
.subtitle-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(12px)}
.active-subtitle-link{color:#5b43d6!important}
.subtitle-shell{width:min(1180px,calc(100% - 28px));margin:0 auto;padding:34px 0 50px}
.subtitle-hero{text-align:center;max-width:820px;margin:10px auto 26px}
.subtitle-kicker{font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--st-purple)}
.subtitle-hero h1{font-size:42px;letter-spacing:-1.5px;margin:8px 0}
.subtitle-hero p{color:var(--st-muted);font-size:15px;line-height:1.65;margin:0 auto;max-width:720px}
.subtitle-privacy-chip{display:inline-block;margin-top:14px;background:#edf9f2;color:#067647;border:1px solid #ccebd7;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:750}
.subtitle-workspace{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}
.subtitle-panel,.subtitle-main-panel{background:#fff;border:1px solid var(--st-border);border-radius:18px;box-shadow:0 12px 38px rgba(16,24,40,.05)}
.subtitle-controls-panel{padding:20px;position:sticky;top:86px;max-height:calc(100vh - 105px);overflow:auto}
.subtitle-controls-panel h2,.subtitle-main-panel h2{font-size:17px;margin:0;color:var(--st-text)}
.panel-title-row,.caption-editor-head,.result-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.status-pill{font-size:9px;font-weight:850;border-radius:999px;padding:5px 7px;background:#f2f4f7;color:#667085}
.status-pill.good{background:#eafaf0;color:#067647}.status-pill.bad{background:#fff0ee;color:#b42318}
.upload-drop{display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:5px;border:1.5px dashed #cbd1dc;border-radius:13px;padding:19px 12px;margin:14px 0!important;background:#fafbfc;cursor:pointer}
.upload-drop:hover{border-color:#9e92ff;background:#faf9ff}.upload-drop input{display:none}
.upload-icon{font-size:28px}.upload-drop strong{font-size:12px}.upload-drop small{font-size:10px;color:#98a2b3}
.video-meta{font-size:10px;color:#667085;background:#f8f9fb;padding:8px;border-radius:9px;margin-bottom:10px;word-break:break-word}
.subtitle-primary-btn,.subtitle-export-btn,.subtitle-download-btn{width:100%;border:0;border-radius:11px;padding:12px 14px;color:#fff;background:linear-gradient(135deg,var(--st-purple),var(--st-purple2));font-weight:850;font-size:12px;cursor:pointer;text-decoration:none;text-align:center}
.subtitle-primary-btn:disabled,.subtitle-export-btn:disabled{opacity:.5;cursor:not-allowed}
.helper-copy{font-size:9px;color:#98a2b3;line-height:1.45}
.subtitle-status{min-height:19px;font-size:10px;color:#667085;margin-top:8px;line-height:1.45}.subtitle-status.error{color:#b42318}.subtitle-status.success{color:#067647}
.subtitle-progress-wrap{display:flex;gap:8px;align-items:center;margin-top:8px}.subtitle-progress-track{height:7px;background:#edf0f4;border-radius:999px;overflow:hidden;flex:1}.subtitle-progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--st-purple),var(--st-purple2));transition:width .1s}.subtitle-progress-wrap span{font-size:9px;width:30px;color:#667085}
.section-divider{height:1px;background:#eceef2;margin:17px 0}
.subtitle-controls-panel label:not(.upload-drop):not(.toggle-row){display:block;font-size:10px;font-weight:800;color:#475467;margin:11px 0 5px}
.subtitle-controls-panel select{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:9px 10px;background:#fff;color:#344054;font-size:11px}
.subtitle-controls-panel input[type="range"]{width:100%;accent-color:var(--st-purple)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:8px}.color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.color-grid input[type="color"]{width:100%;height:35px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;padding:3px}
.toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.toggle-row{display:flex;align-items:center;gap:6px;background:#f8f9fb;border-radius:8px;padding:8px;font-size:9px;font-weight:750;color:#475467}.toggle-row input{accent-color:var(--st-purple)}
.subtitle-main-panel{padding:20px;min-width:0}
.video-stage-wrap{background:#101114;border-radius:16px;overflow:hidden;min-height:420px;display:grid;place-items:center}
.video-stage-empty{color:#98a2b3;display:flex;flex-direction:column;align-items:center;text-align:center;padding:50px 20px}.video-stage-empty span{font-size:45px}.video-stage-empty strong{font-size:14px;color:#d0d5dd;margin-top:8px}.video-stage-empty small{font-size:10px;margin-top:5px}
.video-stage{position:relative;width:100%;display:grid;place-items:center;background:#000}.video-stage video{display:block;max-width:100%;max-height:650px;width:auto;height:auto}
.subtitle-overlay{position:absolute;left:5%;right:5%;text-align:center;pointer-events:none;z-index:5;display:flex;justify-content:center;align-items:center;line-height:1.05;transform-origin:center}
.subtitle-overlay .caption-box{display:inline-block;max-width:92%;padding:.08em .2em;border-radius:.12em}
.subtitle-overlay .caption-word{display:inline-block;margin-right:.18em}
.preview-toolbar{display:flex;gap:8px;margin:12px 0}.subtitle-secondary-btn{border:1px solid #e0e3e9;background:#f8f9fb;color:#344054;border-radius:9px;padding:9px 11px;font-size:10px;font-weight:800;cursor:pointer}.subtitle-secondary-btn:disabled{opacity:.45}
.caption-editor-section{border-top:1px solid #eceef2;padding-top:18px;margin-top:8px}.caption-count{font-size:9px;background:#f2f4f7;color:#667085;border-radius:999px;padding:5px 8px;font-weight:800}
.caption-editor-empty{margin-top:10px;background:#fafafa;border:1px dashed #d6d9df;border-radius:11px;padding:20px;text-align:center;color:#98a2b3;font-size:10px}
.caption-editor{display:grid;gap:8px;margin-top:11px;max-height:330px;overflow:auto;padding-right:3px}.caption-row{display:grid;grid-template-columns:88px 1fr 28px;gap:7px;align-items:center;border:1px solid #eceef2;border-radius:10px;padding:8px;background:#fff}.caption-time{font-size:9px;font-weight:850;color:#6d5dfc}.caption-text-input{width:100%;border:1px solid #d0d5dd;border-radius:7px;padding:8px;font-size:10px}.caption-delete{border:0;background:#fff0ee;color:#b42318;border-radius:7px;height:30px;cursor:pointer}
.export-section{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #eceef2;margin-top:18px;padding-top:18px}.export-section p{font-size:10px;color:#667085;margin:5px 0 0;max-width:520px}.subtitle-export-btn{width:auto;white-space:nowrap}
.captioned-result{border-top:1px solid #eceef2;margin-top:18px;padding-top:18px}.subtitle-download-btn{width:auto;display:inline-block}.captioned-result video{display:block;max-width:100%;max-height:650px;margin:14px auto 0;background:#000;border-radius:13px}
.beta-note{margin-top:18px;background:#fff7e8;border:1px solid #f5ddb0;color:#8a5a0a;border-radius:12px;padding:12px 14px;font-size:10px;line-height:1.5}
.hidden{display:none!important}
@media(max-width:950px){.subtitle-workspace{grid-template-columns:1fr}.subtitle-controls-panel{position:static;max-height:none}.video-stage-wrap{min-height:300px}}
@media(max-width:600px){.subtitle-shell{width:min(100% - 18px,1180px);padding-top:22px}.subtitle-hero h1{font-size:32px}.two-col{grid-template-columns:1fr}.toggle-grid{grid-template-columns:1fr}.color-grid{grid-template-columns:1fr 1fr}.export-section{flex-direction:column;align-items:stretch}.subtitle-export-btn{width:100%}.caption-row{grid-template-columns:72px 1fr 26px}}


/* Account + quota beta */
.account-strip{background:#fff;border:1px solid #ded8ff;border-radius:16px;box-shadow:0 12px 34px rgba(80,63,190,.06);margin:0 0 18px;overflow:hidden}
.account-state{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;background:linear-gradient(135deg,#fbfaff,#fff)}
.account-kicker{font-size:9px;font-weight:900;letter-spacing:.1em;color:#6d5dfc;margin-bottom:3px}
.account-state strong{font-size:13px;color:#202334}.account-state p{font-size:9px;color:#667085;margin:4px 0 0;line-height:1.45}
.account-actions,.account-meter-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-btn{border:0;border-radius:9px;padding:9px 11px;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}
.account-btn-primary{background:linear-gradient(135deg,#6d5dfc,#8b5cf6);color:#fff}.account-btn-light{background:#f2f4f7;color:#344054;border:1px solid #e4e7ec}
.account-btn-credit{background:#fff7e8;color:#8a5a0a;border:1px solid #f5ddb0}
.account-stat{min-width:112px;border:1px solid #eceef2;background:#fff;border-radius:10px;padding:8px 10px}.account-stat span{display:block;font-size:8px;color:#98a2b3;font-weight:750}.account-stat strong{display:block;font-size:15px;margin-top:2px;color:#202334}
.account-user-block{min-width:180px}.quota-zero{color:#b42318!important}

.auth-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:18px}.auth-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.62);backdrop-filter:blur(4px)}
.auth-card{position:relative;z-index:1;width:min(420px,100%);background:#fff;border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.25);padding:25px}
.auth-close{position:absolute;right:13px;top:11px;border:0;background:#f2f4f7;width:30px;height:30px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:#667085}
.auth-logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dfc,#8b5cf6);color:#fff;font-size:20px;margin-bottom:13px}
.auth-card h2{font-size:22px;margin:3px 0 5px;color:#202334}.auth-card>p{font-size:10px;color:#667085;line-height:1.5;margin:0 0 15px}
.auth-card form{display:grid;gap:7px}.auth-card form label{font-size:10px;font-weight:800;color:#475467;margin-top:5px}.auth-card form input{border:1px solid #d0d5dd;border-radius:10px;padding:11px 12px;font-size:12px;outline:none}.auth-card form input:focus{border-color:#8b7cff;box-shadow:0 0 0 3px rgba(109,93,252,.10)}
.auth-submit{border:0;border-radius:10px;padding:12px;margin-top:9px;background:linear-gradient(135deg,#6d5dfc,#8b5cf6);color:#fff;font-weight:850;font-size:12px;cursor:pointer}.auth-submit:disabled{opacity:.55;cursor:not-allowed}
.auth-message{min-height:18px;font-size:10px;line-height:1.4;margin-top:8px;color:#667085}.auth-message.error{color:#b42318}.auth-message.success{color:#067647}
.auth-switch{text-align:center!important;margin:10px 0 0!important}.auth-switch button{border:0;background:transparent;color:#6d5dfc;font-weight:850;font-size:10px;cursor:pointer;padding:0}
.auth-fineprint{border-top:1px solid #eceef2;padding-top:11px;margin-top:14px!important;font-size:8px!important;color:#98a2b3!important}
.limit-callout{background:#fff0ee;border:1px solid #ffd2cc;color:#b42318;border-radius:9px;padding:8px 10px;font-size:9px;margin-top:8px}
@media(max-width:760px){.account-state{align-items:flex-start;flex-direction:column}.account-meter-wrap{width:100%}.account-stat{flex:1}.account-btn{flex:1;text-align:center}.account-actions{width:100%}.account-actions .account-btn{flex:1}}


/* Beta 0.4 paid credit checkout */
.account-btn-credit:disabled{opacity:.55;cursor:not-allowed}
.credit-purchase-status{flex-basis:100%;font-size:8px;color:#667085;line-height:1.4;min-height:0}
.credit-purchase-status.success{color:#067647;font-weight:750}
.credit-purchase-status.error{color:#b42318;font-weight:750}


/* Beta 0.6 — darker premium framing for Subtitle Maker */
.subtitle-page{
  background:
    radial-gradient(circle at 12% 0%,rgba(124,104,255,.17),transparent 28%),
    #0b1020;
}
.subtitle-header{
  background:rgba(10,15,30,.94)!important;
  border-bottom:1px solid rgba(148,163,184,.14)!important
}
.subtitle-header .brand,
.subtitle-header .brand strong{color:#fff!important}
.subtitle-header .brand span{color:#7f8ca5!important}
.subtitle-header .header-link{color:#c8d0df!important}
.subtitle-header .active-subtitle-link{color:#b7acff!important}
.subtitle-hero h1{color:#f8fafc}
.subtitle-hero p{color:#9ca8bc}
.subtitle-kicker{color:#ad9fff}
.account-strip{
  border-color:#39345e;
  box-shadow:0 18px 50px rgba(0,0,0,.22)
}
.subtitle-panel,.subtitle-main-panel{
  box-shadow:0 18px 50px rgba(0,0,0,.22)
}


/* Beta 1.0 — Subtitle Maker SEO content */
.subtitle-seo-content{
  margin-top:26px;
  display:grid;
  gap:18px;
}
.subtitle-seo-intro,
.subtitle-seo-two-col>div,
.subtitle-faq,
.subtitle-related-tools{
  background:linear-gradient(160deg,#121a2c,#0f1727);
  border:1px solid #26334d;
  border-radius:18px;
  padding:24px;
  box-shadow:0 18px 50px rgba(0,0,0,.20);
}
.subtitle-seo-intro h2,
.subtitle-seo-two-col h2,
.subtitle-faq h2,
.subtitle-related-tools h2{
  color:#f8fafc;
  margin:6px 0 8px;
  letter-spacing:-.02em;
}
.subtitle-seo-intro h2{font-size:27px}
.subtitle-seo-intro p,
.subtitle-seo-two-col p,
.subtitle-related-tools p{
  color:#9aa7bb;
  font-size:12px;
  line-height:1.75;
  margin:0;
}
.subtitle-seo-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.subtitle-seo-grid article{
  background:linear-gradient(160deg,#121a2c,#0f1727);
  border:1px solid #26334d;
  border-radius:16px;
  padding:18px;
}
.subtitle-seo-grid article>span{
  display:inline-grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:9px;
  background:#211d47;
  color:#b8adff;
  font-size:9px;
  font-weight:900;
}
.subtitle-seo-grid h3{
  color:#f7f8fc;
  font-size:14px;
  margin:12px 0 7px;
}
.subtitle-seo-grid p{
  color:#8f9cb0;
  font-size:10.5px;
  line-height:1.65;
  margin:0;
}
.subtitle-seo-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.subtitle-seo-two-col h2{font-size:19px}
.subtitle-faq>h2{font-size:22px}
.subtitle-faq details{
  border-top:1px solid #28344d;
  padding:14px 0;
}
.subtitle-faq details:first-of-type{margin-top:8px}
.subtitle-faq summary{
  color:#edf1f7;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}
.subtitle-faq details p{
  color:#8f9cb0;
  font-size:10.5px;
  line-height:1.7;
  margin:8px 0 0;
}
.subtitle-related-tools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.subtitle-related-tools h2{font-size:20px}
.subtitle-related-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.subtitle-related-links a{
  text-decoration:none;
  color:#d9d3ff;
  background:#211d47;
  border:1px solid #4f4693;
  border-radius:10px;
  padding:9px 11px;
  font-size:10px;
  font-weight:850;
}
.subtitle-related-links a:hover{
  border-color:#8d7eff;
  color:#fff;
}
@media(max-width:900px){
  .subtitle-seo-grid{grid-template-columns:1fr 1fr}
  .subtitle-related-tools{align-items:flex-start;flex-direction:column}
  .subtitle-related-links{justify-content:flex-start}
}
@media(max-width:600px){
  .subtitle-seo-grid,
  .subtitle-seo-two-col{grid-template-columns:1fr}
  .subtitle-seo-intro,
  .subtitle-seo-two-col>div,
  .subtitle-faq,
  .subtitle-related-tools{padding:18px}
  .subtitle-seo-intro h2{font-size:22px}
}
