:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#090f19;color:#eaf1fd}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at top left,#1b3049 0%,#0e1928 37%,#090f19 80%)}button,input{font:inherit}.shell{max-width:1000px;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 22px calc(40px + env(safe-area-inset-bottom))}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #29364b;padding:0 0 18px}.branding{display:flex;align-items:center;gap:11px;letter-spacing:.12em}.branding span:last-child{display:flex;flex-direction:column}.branding strong{font-size:17px}.branding small{font-size:10px;letter-spacing:.2em;color:#9cbbd7}.mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ba312f;color:white;font-size:22px;font-weight:900;letter-spacing:0}.pill{border:1px solid #435975;border-radius:99px;padding:7px 11px;font-size:12px;color:#bccde2;white-space:nowrap}.pill.ready{color:#a8eec7;border-color:#2f7558;background:#14362a}.heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:23px 0 12px}.heading h1{margin:0;font-size:28px;letter-spacing:-.035em}.heading p{margin:6px 0 0;color:#a2b3c8;font-size:14px}button{padding:11px 16px;color:#e9f2ff;background:#1c2c41;border:1px solid #425779;border-radius:13px;cursor:pointer}button:disabled{opacity:.5;cursor:wait}.primary{background:#336bc7;border-color:#5e92ed;font-weight:650;white-space:nowrap}.notice{font-size:13px;color:#b8d6f7;line-height:1.45;min-height:20px;margin:8px 0 12px}.notice.error{color:#fbaaaa}.instructions{border:1px solid #334661;background:#122033b8;padding:15px 17px;border-radius:16px;font-size:13px;line-height:1.55;color:#bdd1e7}.instructions strong{font-size:15px;color:#f3f7ff}.instructions p{margin:8px 0 0}.tool-row{display:flex;align-items:center;gap:14px;margin:22px 0 14px}.tool-row input{flex:1;min-width:0;padding:13px 14px;border:1px solid #36495f;border-radius:12px;color:#f4f7fc;background:#0b1724;outline:0}.tool-row input:focus{border-color:#77a9ec}.tool-row span{color:#a0afc2;font-size:12px;white-space:nowrap}.library{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:11px}.media{min-width:0;display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #2e4056;border-radius:15px;background:#132033}.media-top{display:flex;gap:11px;min-width:0;align-items:center}.poster{flex:0 0 48px;height:60px;border-radius:9px;background:linear-gradient(150deg,#264a72,#101d32);display:grid;place-items:center;color:#a5c6e9;font-size:22px}.media-info{min-width:0}.media-title{font-size:14px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}.media-sub{margin-top:6px;font-size:12px;color:#98afc7}.media-actions{display:flex;gap:8px}.media-actions .play{flex:1;background:#2c5c9f;border-color:#457ac3}.media-actions .remove{color:#ffb7b7;border-color:#694351;background:#2e1a28}.empty{grid-column:1/-1;padding:26px;border:1px dashed #32455e;border-radius:15px;color:#a5b8cd;text-align:center;font-size:14px}.progress-box{padding:14px;background:#132b40;border:1px solid #436080;border-radius:14px;margin:12px 0}.progress-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;font-size:13px}.progress-box progress{display:block;width:100%;height:9px;margin:0 0 7px;accent-color:#65a5f5}.progress-box>span{font-size:12px;color:#bad0e6}.storage{font-size:12px;color:#819bb6;margin-top:22px}.player-sheet{position:fixed;inset:0;z-index:100;background:#040912ed;display:grid;place-items:center;padding:env(safe-area-inset-top) 14px env(safe-area-inset-bottom);backdrop-filter:blur(10px)}.player-card{width:min(100%,960px);background:#111b2a;padding:12px;border:1px solid #3b506a;border-radius:18px;box-shadow:0 22px 75px #000b}.player-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}.player-head h2{font-size:17px;margin:0;overflow-wrap:anywhere}.player-head button{flex-shrink:0}.player-card video{width:100%;max-height:72dvh;display:block;border-radius:11px;background:black;aspect-ratio:16/9}.player-meta{display:flex;justify-content:space-between;gap:12px;color:#adc1d7;font-size:12px;padding:12px 2px 0}.player-meta #playerError{color:#ffb7b7}.visually-hidden{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}@media(max-width:540px){.shell{padding-left:13px;padding-right:13px}.heading{align-items:flex-start}.heading h1{font-size:24px}.heading p{max-width:210px}.heading .primary{padding:11px}.top{padding-bottom:12px}.library{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.media{padding:11px}.media-top{align-items:flex-start}.poster{flex-basis:36px;height:52px}.media-title{font-size:12px}.media-sub{font-size:11px}.media-actions{gap:5px}.media-actions button{padding:9px 7px;font-size:12px}.player-sheet{padding-left:6px;padding-right:6px}.player-card{padding:9px}.instructions{font-size:12px}}

/* Override the author-level grid layout when the player is closed. */
.player-sheet[hidden]{display:none!important}
