
/* Account library surfaces use the same controls on desktop and phones. */
.sx-library{--library-accent:var(--sx-phone-accent,var(--account-accent,#3d9df5));--library-muted:var(--sx-phone-muted,var(--account-muted,#959eac));--library-line:var(--sx-phone-line,var(--line,#ffffff20));--library-surface:var(--sx-phone-surface,var(--account-surface,#1c2028));width:100%;min-width:0}
.sx-library-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}.sx-library-heading h2{margin:0!important}.sx-library-heading p{margin:4px 0 0;color:var(--library-muted);font-size:12px}
.sx-library button,.sx-history-actions a,.sx-library-dialog button{font:inherit;font-size:13px;line-height:20px;min-height:36px;padding:7px 12px;border:1px solid var(--library-line,#ffffff20);border-radius:9px;color:var(--library-accent,#3d9df5);background:transparent;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.sx-library button:disabled,.sx-library-dialog button:disabled{opacity:.5;cursor:default}
.sx-library-result{font-size:13px;line-height:20px;color:var(--library-muted);margin:0 0 12px}.sx-library-result:empty{display:none}.sx-library-result a{color:var(--library-accent)}
.sx-history-list{display:flex;flex-direction:column;gap:10px}.sx-history-row{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid var(--library-line);border-radius:12px;background:var(--library-surface);min-width:0}.sx-history-poster{position:relative;display:block;width:82px;flex:0 0 82px;overflow:hidden;border-radius:7px;aspect-ratio:2/3}.sx-history-poster img{display:block;width:100%;height:100%;object-fit:cover}.sx-history-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#ffffff30}.sx-history-track i{display:block;height:100%;background:#75c5ff}.sx-history-info{flex:1;min-width:0}.sx-history-info h3{font-size:15px!important;line-height:22px!important;margin:0 0 6px!important;overflow-wrap:anywhere}.sx-history-info p,.sx-history-info small{display:block;font-size:12px;line-height:18px;color:var(--library-muted);margin:0 0 4px}.sx-history-actions{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}.sx-history-actions a{color:#fff;background:var(--library-accent);border-color:transparent}
.sx-library-empty{padding:40px 12px;text-align:center;color:var(--library-muted);font-size:14px}.sx-library-empty[hidden]{display:none}.sx-favorite-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:18px 12px}.sx-favorite-card{min-width:0}.sx-favorite-card>a{display:block;color:inherit;text-decoration:none}.sx-favorite-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:8px}.sx-favorite-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:20px;margin-top:6px;font-weight:500}.sx-favorite-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--library-muted);font-size:11px;margin:3px 0 7px}.sx-favorite-card button{width:100%;padding:5px;font-size:12px;min-height:32px}
.sx-library-dialog{--library-accent:var(--sx-phone-accent,#3d9df5);--library-line:var(--sx-phone-line,#ffffff25);width:min(420px,calc(100vw - 32px));max-width:420px;box-sizing:border-box;padding:22px;border:1px solid var(--library-line);border-radius:16px;background:var(--sx-phone-surface,#1c2028);color:var(--sx-phone-text,#eef1f5)}.sx-library-dialog::backdrop{background:#0009}.sx-library-dialog h2{font-size:18px;margin:0 0 14px;line-height:26px}.sx-library-dialog p{font-size:14px;line-height:22px;overflow-wrap:anywhere}.sx-library-dialog #sxLibraryConfirmResult{color:#f37e7e;font-size:13px;min-height:20px}.sx-library-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.sx-library-dialog-actions button:last-child{background:var(--library-accent);border-color:transparent;color:#fff}
@media(max-width:760px){
 body[data-sx-mobile-page] .sx-account-page:has(.sx-library)>.uc-head,body[data-sx-mobile-page] .sx-account-page:has(.sx-library)>.uc-tabs,body[data-sx-mobile-page] .sx-account-page:has(.sx-library)>.sx-account-layout>.uc-side{display:none!important}
 body[data-sx-mobile-page] .sx-account-page:has(.sx-library){margin:0!important}
 body[data-sx-mobile-page] .sx-account-page:has(.sx-library) .sx-account-content{padding:8px 2px!important;background:transparent!important;min-height:0!important}
 body[data-sx-mobile-page] .sx-library-heading h2{display:none}.sx-history-row{gap:12px;padding:10px}.sx-history-poster{width:72px;flex-basis:72px}.sx-history-info h3{font-size:14px!important}.sx-history-actions a,.sx-history-actions button{font-size:12px;min-height:34px;padding:6px 11px}.sx-favorite-grid{grid-template-columns:repeat(var(--sx-phone-columns,3),minmax(0,1fr));gap:14px 7px}
}

.sx-phone-account-session{display:none}
@media(max-width:760px){.sx-phone-account-session{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--sx-phone-line)}.sx-phone-account-session strong{font-size:16px;min-width:0;overflow-wrap:anywhere}.sx-phone-account-session form,.sx-my-logout{margin:0}.sx-phone-account-session button,.sx-my-logout button{min-height:38px;padding:8px 15px;border:1px solid var(--sx-phone-line);border-radius:9px;color:#f37e7e;background:transparent;font:inherit;font-size:13px;cursor:pointer}.sx-my-logout button{width:100%;background:var(--sx-phone-surface)}.sx-my-logout[hidden]{display:none!important}}

.sx-favorite-card[hidden],.sx-library-load[hidden]{display:none!important}.sx-library-load{width:100%;margin-top:18px;min-height:40px!important}

/* Watch progress and the newest available episode are independent captions. */
.sx-history-info h3 a{color:inherit;text-decoration:none}.sx-history-info h3 a:hover{color:var(--library-accent)}.sx-history-info h3 a:focus-visible{outline:2px solid var(--library-accent);outline-offset:3px;border-radius:3px}.sx-history-info .sx-history-latest{color:var(--library-accent)}
.sx-my-recent-card>.sx-my-recent-latest{position:static;display:block;width:auto;height:auto;margin-top:1px;border-radius:0;background:none;color:var(--sx-phone-muted);font-size:11px;line-height:17px;white-space:nowrap;text-overflow:ellipsis}
