.syfa-library-shell{--library-ink:var(--main-color,#333);--library-muted:var(--muted-color,#626975);--library-accent:var(--focus-color,#ee3d96);--library-glass:rgb(255 255 255 / 25%);--library-edge:rgb(255 255 255 / 38%);--library-surface:rgb(255 255 255 / 32%);box-sizing:border-box;max-width:1440px;width:100%;margin:-2px auto 0;padding:0 20px 32px;color:var(--library-ink)}
body.dark-theme .syfa-library-shell{--library-glass:rgb(255 255 255 / 5%);--library-edge:rgb(255 255 255 / 12%);--library-surface:rgb(255 255 255 / 4%)}
.syfa-library-heading{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 18px;min-height:48px}
.syfa-library-tabs{box-sizing:border-box;position:relative;isolation:isolate;display:inline-flex;align-items:stretch;gap:3px;padding:3px;border:1px solid var(--library-edge);border-radius:16px;background:var(--library-surface);box-shadow:0 1px 0 rgb(255 255 255 / 8%) inset,0 8px 22px rgb(0 0 0 / 5%);max-width:100%;overflow:hidden}
@supports(backdrop-filter:blur(12px)){.syfa-library-tabs{backdrop-filter:blur(12px) saturate(140%)}}
.syfa-library-tabs:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse 120px 90px at var(--library-pointer,50%) 0%,rgb(255 255 255 / 20%),transparent 80%);pointer-events:none;opacity:0;transition:opacity .2s}
.syfa-library-tabs:hover:before{opacity:1}
.syfa-library-tab{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;padding:7px 14px;min-height:40px;border-radius:12px;color:var(--library-muted)!important;text-decoration:none!important;font-size:18px;font-weight:600;line-height:1.4;white-space:nowrap;transition:color .18s,background .18s;touch-action:manipulation}
.syfa-library-tab[aria-current=page]{color:var(--library-ink)!important;background:var(--library-glass);box-shadow:0 1px 0 rgb(255 255 255 / 24%) inset,0 2px 8px rgb(0 0 0 / 7%)}
.syfa-library-tab[aria-current=page]:after{content:"";position:absolute;bottom:6px;left:calc(50% - 12px);width:24px;height:2px;border-radius:2px;background:var(--library-accent);opacity:.85}
.syfa-library-tab:hover{color:var(--library-ink)!important;background:rgb(255 255 255 / 5%)}
.syfa-library-tab:active{background:rgb(255 255 255 / 12%)}
.syfa-library-tab:focus-visible{outline:2px solid var(--library-accent);outline-offset:-3px}
.syfa-library-glass{display:none;position:absolute;z-index:-1;left:0;top:3px;height:calc(100% - 6px);width:var(--library-width,0);transform:translateX(var(--library-left,5px));border:1px solid rgb(255 255 255 / 16%);border-radius:12px;background:linear-gradient(135deg,rgb(255 255 255 / 7%),transparent 70%),var(--library-glass);box-shadow:0 1px 0 rgb(255 255 255 / 16%) inset,0 -1px 0 rgb(0 0 0 / 6%) inset,0 3px 10px rgb(0 0 0 / 7%);transition:transform .24s cubic-bezier(.2,.8,.2,1),width .24s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.syfa-library-ready .syfa-library-glass{display:block}
.syfa-library-ready .syfa-library-tab[aria-current=page]{background:transparent;box-shadow:none}
.syfa-library-status{font-size:13px;color:var(--library-muted);min-height:20px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.syfa-library-status:empty{display:none}
/* Only a small icon is visible while switching; the live announcement remains accessible. */
.syfa-library-loading-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.syfa-library-shell:is([aria-busy=true],.is-view-loading) .syfa-library-status{display:inline-flex;position:relative;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;line-height:1;flex-wrap:nowrap}
.syfa-library-status button,.syfa-library-status a{color:var(--library-accent);border:0;background:transparent;padding:0;font:inherit;text-decoration:underline;cursor:pointer}
.syfa-library-shell:is([aria-busy=true],.is-view-loading) .syfa-library-status:before{box-sizing:border-box;content:"";width:14px;height:14px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:syfa-library-spin .7s linear infinite}
.syfa-library-content{width:100%;position:relative}
body .syfa-library-content>.syap-page,body .syfa-library-content>.syfa-movies-page{width:100%;max-width:none;padding:0;margin:0}
.syfa-library-content .syap-directory-header,.syfa-library-content .syfa-movie-directory-header{position:absolute!important;top:0;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.syfa-library-content.is-entering{animation:syfa-library-enter .18s ease-out}
@keyframes syfa-library-enter{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes syfa-library-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.syfa-library-shell{padding:0 14px 24px}.syfa-library-heading{margin:0 0 18px;gap:8px;min-height:48px}.syfa-library-tabs{padding:4px;gap:2px;border-radius:19px;width:min(calc(100% - 26px),360px)}.syfa-library-tab{flex:1;padding:8px 12px;font-size:16px;min-height:40px;border-radius:14px}.syfa-library-glass{top:3px;height:calc(100% - 6px);border-radius:14px}.syfa-library-status{font-size:12px}}
@media(prefers-reduced-motion:reduce){.syfa-library-glass,.syfa-library-tab,.syfa-library-tabs:before{transition:none}.syfa-library-content.is-entering{animation:none}.syfa-library-shell:is([aria-busy=true],.is-view-loading) .syfa-library-status:before{animation:none}}

/* Classic Windows scrollbars must not change the width of the fixed theme header. */
@supports(scrollbar-gutter:stable){html.syfa-library-document,html:has([data-sy-library-shell]){scrollbar-gutter:stable}}
@supports not (scrollbar-gutter:stable){html.syfa-library-document{overflow-y:scroll}}

/* Both directories share the exact menu origin, spacing and baseline. */
.syfa-library-content :is(.syfa-movie-menu,.syap-directory-menu){display:flex;flex-wrap:nowrap;align-items:center;gap:22px;margin:0 0 16px;padding:0 2px;overflow-x:auto;scrollbar-width:thin}
.syfa-library-content .syap-directory-menu a{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){.syfa-library-content :is(.syfa-movie-menu,.syap-directory-menu){gap:18px}}
