:root{color-scheme:dark;--bg:#151719;--panel:#24272b;--muted:#b5bac2;--red:#fb4657;--line:#3c4148}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#fff;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:20px}button,input{font:inherit}button{min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:inherit;padding:8px 14px;cursor:pointer}button:hover{background:#35393f}button:focus-visible,input:focus-visible,iframe:focus-visible{outline:4px solid var(--red);outline-offset:3px}button:disabled{opacity:.45;cursor:default}button.selected{background:#642933;border-color:var(--red)}input{min-width:0;min-height:52px;background:var(--panel);border:1px solid var(--line);border-radius:9px;color:#fff;padding:10px 14px}h1{font-size:clamp(26px,5vw,34px);margin:12px 0;line-height:1.35}p{margin:8px 0;line-height:1.45}#app{max-width:860px;margin:auto;padding:16px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;margin-bottom:12px}.brand{font-size:27px;font-weight:850;letter-spacing:1px}.brand span{display:block;font-size:10px;letter-spacing:3px;color:var(--muted)}header button{border:0;background:transparent;min-height:44px;padding:6px}.intro p,.note,#footnote{color:var(--muted);font-size:16px}.intro{padding:3px 0 14px}form{display:flex;gap:10px;margin-bottom:16px}form input{flex:1}form button{background:var(--red);color:#fff;border-color:var(--red);font-weight:650}nav,.sources{display:flex;gap:9px;overflow:auto;padding:4px;margin:0 -4px 14px}nav button,.sources button{white-space:nowrap;flex:1}.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card{text-align:left;min-height:108px;padding:14px;line-height:1.4;display:flex;flex-direction:column;justify-content:space-between;gap:10px}.card small{font-size:15px;color:var(--muted);font-weight:400}.eyebrow{color:var(--red);font-size:16px;margin-top:20px}.episodes{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.episodes button{padding:10px 6px;font-size:19px}#favorite{width:100%}#status{font-size:17px;color:var(--muted);line-height:1.5;margin-top:14px}#error-actions{margin-top:10px}footer{font-size:13px!important;margin:22px 0 6px;line-height:1.5}#watch-heading{display:flex;justify-content:space-between;gap:12px;margin:10px 0;font-size:19px}#watch-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#view-label{flex-shrink:0;color:#ffc0c7;font-size:16px}#stage{position:relative;overflow:hidden;width:100%;height:clamp(240px,56vh,430px);background:#090a0b;border:1px solid var(--line);border-radius:8px}#stage iframe{position:absolute;border:0;background:#000;max-width:none}#loading{position:absolute;inset:0;display:grid;place-items:center;font-size:20px;padding:20px;text-align:center}#watch-tools{margin-top:12px}.primary,.adjust-row{display:flex;gap:9px}.primary button{flex:1;padding:10px 6px;font-size:19px}.primary #magnify{border-color:var(--red)}.adjust-row{align-items:center;margin-top:10px}.adjust-row button,.adjust-row output{flex:1;text-align:center;font-size:19px}.note{margin-top:12px}#adjustments{padding:2px 0 4px}[hidden]{display:none!important}body.theater{overflow:hidden}body.theater #app{padding:0;max-width:none}body.theater header,body.theater #watch-heading,body.theater footer,body.theater #status{display:none}body.theater #stage{position:fixed;inset:0;width:100vw;height:100dvh;border:0;border-radius:0}body.theater #watch-tools{position:fixed;bottom:0;left:0;right:0;padding:14px;background:#202327f5;z-index:2;margin:0}body.theater.tools-hidden #watch-tools{visibility:hidden;pointer-events:none}body.theater #play-note{font-size:15px;margin:8px 0 0}@media(max-width:420px){body{font-size:18px}#app{padding:12px}.episodes{grid-template-columns:repeat(3,1fr)}.primary button{font-size:16px}nav button{font-size:16px;padding:8px}#stage{height:48vh}.card{min-height:100px}.adjust-row button{font-size:17px}}@media(prefers-reduced-motion:no-preference){button{transition:background .12s}}

body.adjusting:not(.theater) #stage{height:150px;min-height:0}
.phone-input{width:100%;margin:0 0 14px;border-color:var(--red);color:#ffd4d8}dialog{width:min(540px,calc(100% - 32px));border:1px solid var(--line);border-radius:14px;background:#202327;color:white;padding:24px}dialog::backdrop{background:#000c}dialog h1{margin-top:0}#pair-address{overflow-wrap:anywhere;color:#ffd4d8;font-size:18px}#pair-code{font-size:clamp(30px,7vw,46px);font-weight:750;letter-spacing:3px;margin:22px 0}#pair-status{font-size:17px;color:var(--muted);min-height:50px}.pair-actions{display:flex;gap:14px;margin-top:20px}.pair-actions button{flex:1}#phone-panel{max-width:540px;margin:24px auto}#phone-form{display:grid;gap:12px;margin-top:30px}#phone-form input{width:100%}#phone-form label{font-size:18px}#phone-code{text-transform:uppercase;letter-spacing:3px}#phone-status{line-height:1.6;margin:22px 0}
