.upscale-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:28px;border:1px solid #586448;border-radius:16px;background:#15231a;color:#eee8d8;overflow:auto}
.upscale-dialog::backdrop{background:#06100bd9;backdrop-filter:blur(5px)}
.upscale-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.upscale-header h2{font-family:var(--serif,Georgia,serif);font-size:34px;line-height:1.15;margin:8px 0 10px;font-weight:500}
.upscale-header p:not(.eyebrow){font-size:13px;line-height:1.6;color:#b9c4b1;margin:0}
.upscale-header .icon-button{flex:0 0 44px;min-height:44px;border:1px solid #48563f;border-radius:8px;color:#d7dfce;background:transparent;cursor:pointer}
.upscale-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
.upscale-original h3{font-family:var(--serif,Georgia,serif);font-size:23px;line-height:1.3;font-weight:500;margin:8px 0 16px;overflow-wrap:anywhere}
.upscale-player{display:flex;align-items:center;justify-content:center;min-height:120px;border:1px solid #46533b;border-radius:9px;background:#07100b;overflow:hidden}
.upscale-player video{display:block;width:100%;max-height:390px;object-fit:contain}
.upscale-options{padding-top:4px;min-width:0}
.upscale-availability{margin:0 0 18px;padding:12px 14px;border:1px solid #657448;border-radius:8px;background:#273724;color:#e1e7d6;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.upscale-choice{display:grid;gap:8px;font-size:13px;font-weight:600;color:#d5ddcd}
.upscale-choice select{appearance:auto;box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:11px 14px;border:1px solid #586848;border-radius:8px;background:#111e16;color:#eee8d8;font:inherit;font-weight:400}
.upscale-choice select:disabled{opacity:.65}
.upscale-choice+.upscale-help{margin:10px 0 18px}
.upscale-format{display:grid;grid-template-columns:1fr 1fr;border:1px solid #586848;border-radius:9px;overflow:hidden}
.upscale-format>div{padding:17px 13px;min-width:0}
.upscale-format>div+div{background:#2c402c;border-left:1px solid #586848}
.upscale-format span{display:block;font-size:11px;line-height:1.5;color:#c2ceb8;margin-bottom:7px}
.upscale-format strong{font-size:17px;line-height:1.5;font-weight:600;color:#e7c987;overflow-wrap:anywhere}
.upscale-help{color:#b8c4af;font-size:12px;line-height:1.7;margin:16px 0}
.upscale-price{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 0;border-top:1px solid #435139;border-bottom:1px solid #435139;font-size:13px;color:#bdcbb4}
.upscale-price strong{color:#e7c987;font-size:18px}
.upscale-status{padding:12px 14px;background:#253a28;border:1px solid #4c6346;border-radius:8px;font-size:12px;line-height:1.65;color:#d3dfca}
.upscale-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.upscale-actions .button{min-height:44px;flex:1;justify-content:center}
.upscale-dialog [hidden]{display:none!important}
.upscale-dialog .inline-error{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.upscale-dialog button:focus-visible,.upscale-dialog select:focus-visible{outline:2px solid var(--gold,#d7b770);outline-offset:3px}
@media(max-width:650px){.upscale-dialog{width:calc(100vw - 20px);padding:18px;max-height:calc(100dvh - 20px)}.upscale-header{gap:12px;margin-bottom:20px}.upscale-header h2{font-size:29px}.upscale-layout{grid-template-columns:minmax(0,1fr);gap:20px}.upscale-player video{max-height:250px}.upscale-format strong{font-size:16px}}
body #upscale-dialog .upscale-actions .button{min-height:44px;padding:11px 14px;line-height:20px;white-space:normal}
body #upscale-dialog .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
