.preferencesPage{max-width:760px;margin:0 auto}.preferencesPage>h1{font-size:28px;font-weight:900;margin:0 0 9px}.preferencesPage>p{margin:0 0 26px;color:var(--muted)}.preferencesStack{display:flex;flex-direction:column;gap:18px}.preferencesPage .prefPanel{padding:26px}.prefPanel h2{font-size:18px;margin:0;font-weight:700}.prefPanel p{font-size:14px;line-height:1.55;color:var(--muted);margin:5px 0 0}.prefSetting{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;cursor:pointer}.prefSetting>span{min-width:0}.prefSwitch{appearance:none;flex:0 0 38px;width:38px;height:22px;border:0;border-radius:20px;background:var(--muted)!important;padding:0;margin:0;position:relative;cursor:pointer}.prefSwitch:before{content:"";position:absolute;width:16px;height:16px;top:3px;left:3px;border-radius:50%;background:#fff;transition:transform .15s}.prefSwitch:checked{background:var(--accent)!important}.prefSwitch:checked:before{transform:translateX(16px)}.prefSwitch:disabled{opacity:.4;cursor:not-allowed}.prefPreview{margin-top:22px}.prefCaption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;text-transform:uppercase;letter-spacing:1px;font-size:11px;color:var(--muted);margin-bottom:12px}.prefCaption span:last-child{text-transform:none;letter-spacing:0}.prefReviewCards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.prefReviewCard{padding:13px;background:var(--input);border:1px solid var(--line);border-radius:9px;min-width:0}.prefReviewCard:last-child{grid-column:1/-1}.prefReviewCard h3{font-size:12px;margin:0}.prefReviewCard p{font-size:12px;line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}.prefTextButton{border:0;background:transparent;color:var(--link);padding:0;font:inherit;cursor:pointer}.prefKeys{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;margin-top:8px;padding-top:0}.prefKeysNote{grid-column:1/-1;font-size:13px!important;margin:0!important}.prefKeyField{min-width:0}.prefKeyHeading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px}.prefKeyHeading label{font-size:13px;margin:0}.prefKeyHeading a{font-size:11px;color:var(--link);white-space:nowrap}.prefKeyRow{display:flex;gap:8px}.prefKeyRow input{min-width:0;flex:1;width:0;padding:12px;font-size:14px}.prefKeyRow button{background:var(--tab);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:10px 13px;font-size:12px;flex-shrink:0}.prefPosterContent{display:flex;gap:40px;justify-content:center;align-items:center;margin-top:18px}.prefPosterFrame{width:151px;aspect-ratio:2/3;position:relative;overflow:hidden;border-radius:9px;background:var(--input)}.prefPosterFrame>img{width:100%;height:100%;object-fit:cover;display:block}.prefPosterShade{position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#080a0c 80%)}.prefBadges{position:absolute;left:5px;right:5px;bottom:8px;display:flex;justify-content:center;gap:4px}.prefBadge{display:flex;gap:3px;align-items:center;border-radius:10px;background:#151b20;color:#fff;font-size:9px;padding:3px 4px;font-weight:700;white-space:nowrap}.prefBadgeIcon{height:13px;min-width:13px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:7px;font-weight:900;background:#f4cd39;color:#111}.prefLetterboxd{background:linear-gradient(90deg,#ed8b36 33%,#45bd76 33%,#45bd76 66%,#58b9dc 66%);color:transparent}.prefTomatoes{background:#f24b4b;color:white}.prefBadgeChoices{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.prefBadgeChoices label{display:flex;align-items:center;gap:9px;font-size:14px;margin:0;font-weight:400;cursor:pointer}.prefBadgeChoices input{width:16px;height:16px;padding:0;margin:0;accent-color:var(--accent)}.prefPosterCaption{font-size:12px!important;text-align:center}.prefFilterRow{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0 0;font-size:14px;font-weight:400}.prefHelp{font-size:12px!important}.prefActions{display:flex;justify-content:flex-end;margin-top:22px}.prefError{color:#ff8e95;line-height:1.5;font-size:13px;margin-top:15px}.prefConfirmList{list-style:none;padding:0;margin:18px 0 0}.prefConfirmList li{padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.prefSummaryRow{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding-top:15px;font-size:14px}.prefSummaryRow span:last-child{color:var(--muted);text-align:right}.prefConfirmHeading{display:flex;justify-content:space-between;align-items:center;gap:15px}.prefConfirmHeading button{font-size:13px}.prefError:empty{display:none}.prefPreview[hidden],.prefPage[hidden],.prefBadge[hidden],.prefPosterShade[hidden],.prefBadges[hidden],.prefCompletedHelp[hidden]{display:none!important}@media(min-width:0){.preferencesPage .prefPanel{padding:20px}.prefReviewCards{display:flex;flex-direction:column}.prefKeys{grid-template-columns:1fr}.prefKeyRow input{font-size:16px}.prefPosterContent{gap:22px}.prefPosterFrame{width:140px}.prefSummaryRow{flex-wrap:wrap}.prefCaption{font-size:11px}}@media(prefers-reduced-motion:reduce){.prefSwitch:before{transition:none}}
@media(max-width:360px){.prefPosterContent{flex-direction:column;gap:18px}.prefBadgeChoices{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:12px}.prefBadgeChoices label{font-size:13px}.prefKeyHeading{gap:5px}.prefKeyHeading a{font-size:11px}body header .steps{font-size:11px;gap:8px}body header{padding-left:16px;padding-right:16px}body header .brand{font-size:22px}}
.prefConfirmList{list-style:decimal;padding-left:24px}.prefConfirmList li{padding-left:7px}.prefConfirmList li::marker{color:var(--muted);font-size:12px}.prefManifest{margin-top:28px}.prefManifestRow{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;padding:7px;gap:8px;background:var(--input)}.prefManifestRow input{min-width:0;width:0;flex:1;border:0;padding:8px;background:transparent!important;text-overflow:ellipsis;font-size:14px}.prefManifestRow button{padding:9px 15px;color:var(--link);background:var(--tab);font-weight:700}.prefInstall{display:block;width:100%;margin:0 0 12px;text-align:center;text-decoration:none;font-size:16px}.prefInstall[aria-disabled=true]{opacity:.45;pointer-events:none}.prefManifestRow button:disabled{opacity:.45}.prefManifest .prefHelp{margin-top:12px}.prefManifest .prefError:empty{display:none}
 
.prefSelect{display:block;width:100%;min-height:46px;margin-top:12px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:var(--input);color:var(--text);font:inherit;font-size:15px}#prefRatingsPanel{margin-top:6px}#prefRatingsPanel[hidden],#prefBetterPanel[hidden],#prefPosterPlusPanel[hidden]{display:none!important}#prefBetterPanel .prefKeyField,#prefPosterPlusPanel .prefKeyField{display:grid;gap:7px}#prefBetterPanel a,#prefPosterPlusPanel a{color:var(--link)}
.prefMetadataCard{display:block!important}.preferencesPage .prefMetadataCard .prefMetadataChoices{display:block!important;width:100%!important;margin-top:14px}.preferencesPage .prefMetadataCard .prefMetadataChoice{display:flex!important;position:relative!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:10px 0!important;cursor:pointer}.preferencesPage .prefMetadataCard .prefMetadataChoice>span{display:block!important;flex:1 1 auto!important;width:auto!important;min-width:0!important}.prefMetadataChoice strong{display:block;font-size:15px}.prefMetadataChoice strong small{display:inline-block;margin-left:6px;color:var(--muted);font-size:12px;font-weight:400}.prefTmdbLanguage{margin-top:16px}.prefTmdbLanguage[hidden]{display:none!important}.prefTmdbLanguage>label{display:block;font-size:14px;font-weight:600;margin:0}
.prefProviderUrlRow{display:flex;align-items:center;gap:8px}.prefProviderUrlRow input{flex:1;min-width:0;width:0;padding:12px;font-size:14px}.prefProviderConfig,.prefVerifyButton{flex:0 0 auto;white-space:nowrap}.prefProviderConfig{padding:9px 11px!important;color:var(--link)!important;background:var(--tab)!important;border:1px solid var(--line)!important}.prefVerifyButton{padding:10px 14px!important}.prefVerifyStatus{margin-top:7px!important;font-size:13px!important;min-height:0}.prefVerifyStatus:empty{display:none}.prefVerifyStatus.is-success{color:#25834d!important}.prefVerifyStatus.is-error{color:#d13b4c!important}.prefVerifyStatus.is-neutral{color:var(--muted)!important}body .prefVerifyStatus.is-success{color:#55d18a!important}body .prefVerifyStatus.is-error{color:#ff8e95!important}.prefRatingsVerify{margin:14px 0 0}.prefPosterContent[hidden]{display:none!important}
.prefBadgeChoices[hidden]{display:none!important}
@media(min-width:0){.prefProviderUrlRow{flex-wrap:wrap}.prefProviderUrlRow input{flex-basis:100%}.prefProviderUrlRow .prefProviderConfig,.prefProviderUrlRow .prefVerifyButton{flex:1}.prefRatingsVerify{width:100%}}
#prefRpdbPanel[hidden]{display:none!important}
/* Provider fields sit below the poster style choices. */
.prefPosterStylePanels>div{margin-top:12px}

.prefPosterChoices{margin-top:14px}
.prefPosterChoices .prefSetting{min-height:44px}
.prefMobileBack{display:none}
@media(min-width:0){
  .prefMobileBack{display:block}
  body[data-page=preferences]{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
  body[data-page=confirm]{padding-bottom:calc(152px + env(safe-area-inset-bottom,0px))}
  #preferences .prefActions,#confirm .prefManifest{position:fixed;inset:auto 0 0;z-index:4;background:var(--bg);padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));border-top:1px solid var(--line)}
  #preferences .prefActions{gap:10px}
  #preferences .prefMobileBack{order:-1}
  #preferences .prefActions button{min-height:48px;flex:1}
  #preferences .prefActions .primary{flex:2}
  #confirm .prefManifest{display:flex;flex-direction:column;gap:8px;max-height:55dvh;overflow:auto}
  #confirm .prefInstall{margin:0;min-height:48px}
  #confirm .prefManifestRow input{font-size:16px}
  #confirm .prefManifestRow button{flex-shrink:0;min-height:44px}
  #confirm .prefConfirmHeading button{min-height:44px}
}
@media(min-width:0){
  .prefMetadataCard{order:-1}
}

body.androidSetup{
  --android-nav-height:calc(73px + env(safe-area-inset-bottom,0px));
}
body.androidSetup[data-page=preferences]{padding-bottom:calc(var(--android-nav-height) + 69px)}
body.androidSetup[data-page=confirm]{padding-bottom:var(--android-nav-height)}
body.androidSetup #preferences .prefActions{
  position:fixed;inset:auto 0 var(--android-nav-height);z-index:12;margin:0;
  display:flex;gap:10px;background:var(--panel);border-top:1px solid var(--line);
  padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));
}
body.androidSetup #preferences .prefMobileBack{display:block;order:-1;flex:1}
body.androidSetup #preferences .prefActions .primary{flex:2}
body.androidSetup #confirm .prefManifest{
  position:static;display:flex;flex-direction:column;gap:10px;max-height:none;overflow:visible;
}
body.androidSetup #confirm .prefManifest [hidden]{display:none!important}
body.androidSetup #preferences .prefActions button,
body.androidSetup #confirm .prefGenerate{min-height:48px}
