#plex-library-navigation .nav-source-row{display:flex;position:relative;width:100%;flex:none;min-width:0}
#plex-library-navigation .nav-source-main{flex:1;min-width:0;padding-right:34px!important}
#plex-library-navigation .nav-source-options{position:absolute;right:0;top:3px;bottom:3px;width:28px!important;min-width:28px;min-height:0!important;height:auto!important;padding:0!important;justify-content:center!important;opacity:0;color:var(--muted);font-size:22px!important}
#plex-library-navigation .nav-source-row:hover .nav-source-options,#plex-library-navigation .nav-source-row:focus-within .nav-source-options{opacity:1}
#plex-library-navigation .nav-source-row.dragging{opacity:.45}
html[data-sidebar-collapsed=true] #plex-library-navigation .nav-source-options{display:none!important}
html[data-sidebar-collapsed=true] #plex-library-navigation .nav-source-label{display:none}
html.tv-mode #plex-library-navigation:focus-within .nav-source-label{display:inline;font-size:16px!important}
html.tv-mode #plex-library-navigation:not(:focus-within) .nav-source-label{display:none}
.menu-more-dialog{position:fixed;margin:0;inset:var(--top-nav-height,68px) auto 0 0;width:min(380px,95vw);height:calc(100dvh - var(--top-nav-height,68px));max-height:none;box-sizing:border-box;border:0;border-right:1px solid var(--line);border-radius:0;padding:24px 18px;background:var(--panel);color:var(--text);overflow:auto;box-shadow:14px 0 40px #0006}
.menu-more-dialog::backdrop{background:#0004}
.menu-more-sources h3{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:22px 10px 8px}
.menu-more-row{display:flex;align-items:center;min-width:0;gap:4px}
.menu-more-row .nav-source-main{display:flex;align-items:center;flex:1;gap:12px;text-align:left;padding:12px 10px;background:transparent;color:var(--text);min-width:0;font-size:14px;font-weight:400}
.menu-more-row .plex-library-icon{display:flex;width:22px;height:22px;flex:none}.menu-more-row svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.menu-pin-toggle{display:grid;place-items:center;background:transparent;color:var(--muted);width:40px;min-height:40px;padding:8px}.menu-pin-toggle[aria-pressed=true]{color:var(--accent)}
.menu-source-actions{width:260px}.menu-source-actions>.text-button{display:block;width:100%;text-align:left;padding:12px}
.menu-reorder-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.menu-reorder-row>span:nth-child(2){flex:1}.menu-drag-handle{color:var(--muted);cursor:grab}.menu-reorder-dialog [data-menu-done]{margin-top:18px}
@media(hover:none){#plex-library-navigation .nav-source-options{opacity:1}}
/* Small row chevrons live above the posters, rather than covering artwork. */
#content .shelf-shell{padding-top:30px}
#content .shelf-arrow{top:0!important;bottom:auto!important;left:auto!important;transform:none!important;width:30px!important;height:28px!important;min-width:30px!important;min-height:28px!important;background:transparent!important;border:0!important;border-radius:0!important;color:var(--text);display:grid!important;place-items:center;padding:0;box-shadow:none}
#content .shelf-arrow.left{right:34px!important}#content .shelf-arrow.right{right:0!important}
#content .shelf-arrow::before{width:8px;height:8px;border-width:1.5px 1.5px 0 0}
#content .shelf-arrow:disabled{opacity:.25!important;pointer-events:none}#content .shelf-arrow:hover:not(:disabled){color:var(--accent)}#content .shelf-arrow[hidden]{display:none!important}
#content :is(.section-heading,h2,h3)+.shelf-shell{padding-top:0}#content :is(.section-heading,h2,h3)+.shelf-shell>.shelf-arrow{top:-36px!important}
#content .section-heading:has(+.shelf-shell){padding-right:76px}
#content .arrow-shelf{scrollbar-width:none}#content .arrow-shelf::-webkit-scrollbar{display:none}
html #app #content :is(.media h3,.media-title,.plex-collection-card h3,.collection-title-button,.continue-card h3,.continue-card h3 button,.need-show-info strong,.season-card strong,.episode-description strong,.music-card h3,.youtube-card h3,.twitch-card h3){font-weight:400!important}
.profile-dropdown{position:fixed;inset:calc(var(--top-nav-height,68px) + 4px) 16px auto auto;margin:0;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - var(--top-nav-height,68px) - 20px);overflow:auto;padding:0;border:1px solid var(--line);border-radius:3px;background:var(--panel);color:var(--text);box-shadow:0 12px 35px #0008}
.profile-dropdown::backdrop{background:transparent}.profile-dropdown-heading{display:grid;justify-items:center;gap:8px;padding:20px 12px;background:color-mix(in srgb,var(--text) 4%,transparent)}.profile-dropdown-heading strong{font-size:15px;font-weight:500}.profile-dropdown-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--bg);font-size:30px}.profile-dropdown-avatar :is(img,svg){width:100%;height:100%;object-fit:cover}
.profile-dropdown-item{display:block;width:100%;padding:10px 16px;text-align:left;color:var(--text);font-size:14px;font-weight:400;min-height:38px;background:transparent;border:0;border-radius:0}.profile-dropdown-item:hover,.profile-dropdown-item:focus-visible{background:color-mix(in srgb,var(--text) 7%,transparent)}.profile-dropdown-divider{border-top:1px solid var(--line);margin-top:8px;padding-top:16px}
.profile-dropdown #navigation-profile-controls{padding:12px 16px;border-top:1px solid var(--line)}.profile-help-dialog{width:min(650px,94vw);max-height:85dvh;overflow:auto}.profile-help-dialog label{display:grid;gap:8px;margin:16px 0}.profile-help-dialog textarea{min-height:90px}.profile-help-dialog article{border-bottom:1px solid var(--line);padding:12px 0}.profile-help-dialog dt{font-weight:500;margin-top:12px}.profile-help-dialog dd{color:var(--muted);margin:5px 0 0}
html.tv-mode dialog.menu-source-actions{width:300px;padding:22px}
html.tv-mode dialog.menu-reorder-dialog{width:min(540px,90vw)}
html.tv-mode dialog.menu-more-dialog{width:340px;height:calc(100dvh - var(--top-nav-height,56px));max-height:none;padding:22px 16px}
html.tv-mode dialog.profile-dropdown{width:300px;padding:0;max-height:calc(100dvh - var(--top-nav-height,56px) - 16px)}
html.tv-mode .profile-dropdown-item{font-size:16px;min-height:40px}
/* Compact source rail, with separately selectable three-dot actions. */
#plex-library-navigation,#plex-library-navigation button,.menu-more-dialog button,.menu-source-actions button,.profile-dropdown-item{font-family:"Segoe UI",Arial,sans-serif!important;font-weight:400!important;letter-spacing:0!important}
#plex-library-navigation .nav-source-main{min-height:36px!important;height:36px!important;font-size:13px!important;line-height:1.35;padding:7px 32px 7px 10px!important;gap:10px!important}
#plex-library-navigation .plex-library-icon{width:20px;height:20px;flex:none}
#plex-library-navigation .nav-source-options{display:flex!important;width:26px!important;height:30px!important;top:3px;bottom:auto;min-height:30px!important;font-size:18px!important;outline-offset:-2px!important}
#plex-library-navigation .nav-source-label{font-weight:400!important;line-height:1.35;min-width:0}
@media(min-width:901px){html:not(.tv-mode)[data-interface=plex] #plex-library-navigation{width:200px!important;padding:12px 8px;gap:2px}html:not(.tv-mode)[data-interface=plex] .workspace>main{margin-left:200px}html:not(.tv-mode)[data-interface=plex][data-sidebar-collapsed=true] #plex-library-navigation{width:68px!important}html:not(.tv-mode)[data-interface=plex][data-sidebar-collapsed=true] .workspace>main{margin-left:68px}}
html.tv-mode[data-interface=plex] #plex-library-navigation{width:60px!important;padding:10px 6px;gap:2px}
html.tv-mode[data-interface=plex] #plex-library-navigation:focus-within{width:180px!important}
html.tv-mode[data-interface=plex] .workspace>main{margin-left:60px!important;width:calc(100% - 60px)!important}
html.tv-mode #plex-library-navigation .nav-source-main{height:36px!important;min-height:36px!important;padding:7px 26px 7px 8px!important;gap:9px!important}
html.tv-mode #plex-library-navigation:focus-within .nav-source-label{font-size:14px!important}
html.tv-mode #plex-library-navigation:not(:focus-within) .nav-source-options{display:none!important}
html.tv-mode #plex-library-navigation:focus-within .nav-source-options{display:flex!important;opacity:1;width:24px!important;min-width:24px!important;justify-content:center!important;padding:0!important}
html.tv-mode #plex-library-navigation .nav-source-main:focus{outline-offset:-2px!important}
html.tv-mode dialog.menu-source-actions{width:260px;font-size:14px;padding:18px}
html.tv-mode dialog.menu-more-dialog{width:280px;padding:18px 12px}
.menu-more-row .nav-source-main{font-size:13px;min-height:36px;padding:9px 8px}
html.tv-mode .menu-more-row .nav-source-main{font-size:14px}
:root[data-text-size=large] #plex-library-navigation .nav-source-label{font-size:15px!important}
:root[data-text-size=larger] #plex-library-navigation .nav-source-label{font-size:17px!important}
@font-face{font-family:"Open Sans";src:url("/theme-fonts/interface-400.woff?v=1") format("woff2");font-weight:300 800;font-style:normal;font-display:swap}
:root{--ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Oxygen-Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif;--menu-font-size:14px}
/* One interface family, including TV controls, theme previews and portalled dialogs.
   SVG logos and provider artwork retain their own lettering. */
html body,html body :is(#app,#app *,dialog,dialog *,#toast):not(svg):not(svg *){font-family:var(--ui-font)!important;font-style:normal!important;letter-spacing:normal!important}
.menu-source-actions{position:fixed;margin:0;inset:auto;width:240px;max-width:calc(100vw - 24px);padding:8px;border-radius:3px}
.menu-source-actions>.close,.menu-source-actions>h2{display:none}
.menu-source-actions::backdrop{background:transparent}
html.tv-mode dialog.menu-source-actions{width:240px;padding:8px}
@media(min-width:901px){html:not(.tv-mode)[data-sidebar-collapsed=true] #plex-library-navigation .nav-source-main{padding-left:5px!important;padding-right:26px!important}}
html[data-theme] #settings-pages :is(p,label,input,select,textarea,summary,small){font-size:14px!important}
html[data-theme] #settings-pages small{font-size:12px!important}
html[data-theme][data-text-size=large] #settings-pages :is(p,label,input,select,textarea,summary){font-size:16px!important}
html[data-theme][data-text-size=larger] #settings-pages :is(p,label,input,select,textarea,summary){font-size:18px!important}
#plex-library-navigation .nav-source-label,.menu-more-row .nav-source-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.tv-mode #plex-library-navigation:focus-within .nav-source-label{display:block}
.menu-more-row .nav-source-main[aria-current=page]{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}

/* Plex reference: 14px menu labels, 40px rows, 260px expanded rail, 13px titles. */
html body #plex-library-navigation .nav-source-main{font-size:var(--menu-font-size)!important;height:auto!important;min-height:40px!important;padding:9px 34px 9px 12px!important;line-height:20px!important}
html body #plex-library-navigation .nav-source-label{font-size:var(--menu-font-size)!important;line-height:20px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
html body #plex-library-navigation .nav-source-options{top:5px!important}
@media(min-width:901px){html:not(.tv-mode)[data-interface=plex] #plex-library-navigation{width:260px!important}html:not(.tv-mode)[data-interface=plex] .workspace>main{margin-left:260px}html:not(.tv-mode)[data-interface=plex][data-sidebar-collapsed=true] #plex-library-navigation{width:68px!important}html:not(.tv-mode)[data-interface=plex][data-sidebar-collapsed=true] .workspace>main{margin-left:68px}}
html.tv-mode[data-interface=plex] #plex-library-navigation:focus-within{width:260px!important}
@media(max-width:900px){html:not(.tv-mode)[data-interface=plex] #plex-library-navigation{width:min(280px,88vw)!important}}
html body .menu-more-row .nav-source-main,html body .profile-dropdown-item,html body .menu-source-actions button{font-size:var(--menu-font-size)!important;min-height:40px}
html body #app #content :is(.media h3,.media h3 button,.media-title,.continue-card h3,.continue-card h3 button,.plex-collection-card h3,.collection-title-button,.music-card h3,.youtube-card h3,.twitch-card h3){font-size:13px!important;font-weight:400!important;line-height:1.5!important}
:root[data-text-size=large]{--menu-font-size:15px}:root[data-text-size=larger]{--menu-font-size:17px}

#home-shortcuts:empty{display:none!important}

.poster-frame{position:relative}.poster-quick-play{display:none}
@media(hover:hover) and (pointer:fine){html:not(.tv-mode) .poster-frame .poster-quick-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;min-height:0;padding:9px;border:2px solid #ddd;border-radius:50%;background:#0005;color:#fff;opacity:0;visibility:hidden;z-index:6;transition:background .12s,color .12s,opacity .12s}html:not(.tv-mode) .poster-quick-play svg{width:24px;height:24px;fill:currentColor;stroke:none}html:not(.tv-mode) .media:is(:hover,:focus-within) .poster-quick-play{opacity:1;visibility:visible}html:not(.tv-mode) .media:is(:hover,:focus-within) .poster-frame .media-open{outline:1px solid #e5a00d!important;outline-offset:-1px!important;transform:none!important}html:not(.tv-mode) .media:is(:hover,:focus-within) .poster-frame .plex-poster{filter:brightness(.55)}html:not(.tv-mode) .poster-frame .poster-hover{display:none!important}html:not(.tv-mode) .poster-frame .poster-actions-toggle{top:auto!important;bottom:7px!important;right:7px!important;z-index:7}html:not(.tv-mode) .poster-quick-play:is(:hover,:focus-visible){background:#e5a00d;color:#171717;border-color:#e5a00d;filter:none}html:not(.tv-mode) .media-title:hover{text-decoration:underline;color:var(--text)}}

/* Playback links retain the same artwork box as poster buttons. */
.up-next-card>.poster{display:block!important;position:relative;width:100%;height:auto!important;aspect-ratio:2/3;overflow:hidden}.up-next-card>.poster>.plex-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Trending chevrons select a title rather than paging past a group. */
#popular-library .trending-heading{position:relative;padding-right:76px}
#content #popular-library .trending-row-arrows .shelf-arrow{display:grid!important;top:0!important}

/* Keep attention on the playing trailer without obscuring remote focus rings. */
#popular-library .trending-posters .plex-poster{transition:filter .2s ease}
#content #popular-library.trailer-active .trending-posters .media:not(.is-featured) .plex-poster{filter:grayscale(1)!important}
#content #popular-library.trailer-active .trending-posters .media.is-featured .plex-poster{filter:none!important}
@media(prefers-reduced-motion:reduce){#popular-library .trending-posters .plex-poster{transition:none}}

/* Continue Watching already plays on selection; its icon belongs inside that link. */
:is(.up-next-card,.continue-card) :is(.poster,.continue-image){position:relative}
:is(.up-next-card,.continue-card) .continue-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;box-sizing:border-box;padding:9px;border:2px solid #ddd;border-radius:50%;background:#0005;color:#fff;opacity:0;pointer-events:none;z-index:6;transition:opacity .12s,background .12s}
:is(.up-next-card,.continue-card) .continue-play-icon svg{width:24px;height:24px;fill:currentColor;stroke:none}
:is(.up-next-card,.continue-card):is(:hover,:focus-within) .continue-play-icon{opacity:1}
:is(.up-next-card,.continue-card) :is(.poster,.continue-image):is(:hover,:focus-visible) .continue-play-icon{background:var(--accent,#e5a00d);color:#171717;border-color:var(--accent,#e5a00d)}
@media(hover:none){html:not(.tv-mode) :is(.up-next-card,.continue-card) .continue-play-icon{opacity:1;width:36px;height:36px;padding:6px}}
html.tv-mode :is(.up-next-card,.continue-card) .continue-play-icon{width:36px;height:36px;padding:6px}
@media(prefers-reduced-motion:reduce){:is(.up-next-card,.continue-card) .continue-play-icon{transition:none}}

/* The play control replaces legacy text banners. Trending only selects a preview. */
:is(.up-next-card,.continue-card) :is(.poster-hover,.continue-hover),#popular-library .trending-posters .poster-hover{display:none!important}

.playback-priority-list{list-style:none;margin:12px 0;padding:0;max-width:600px}.playback-priority-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.playback-drag-handle{cursor:grab;color:var(--muted)}.playback-rank{width:18px;color:var(--muted);font-size:12px}.playback-service-name{flex:1;min-width:0}.playback-priority-list button{width:34px;min-height:34px;padding:4px;font-size:18px}.playback-priority-list button:disabled{opacity:.25}.playback-priority-list li:focus-visible{outline:2px solid var(--accent)}

#popular-library .trending-row-arrows{position:absolute;top:0;right:0;display:flex;align-items:center;gap:4px}#popular-library .trending-row-arrows .shelf-arrow{position:static!important;inset:auto!important;transform:none!important;width:30px!important;min-width:30px!important;height:28px!important;min-height:28px!important;flex:none}#popular-library .trending-row-arrows .left{order:0}#popular-library .trending-row-arrows .right{order:1}html.tv-mode #popular-library .trending-posters{max-width:100%;min-width:0}

/* One balanced alphabet rail; all letters fit without a second scroll area. */
html .library-alphabet{top:calc(var(--top-nav-height,68px) + 24px);bottom:24px;right:8px;width:32px;padding:0;background:transparent!important;border:0;box-shadow:none;backdrop-filter:none;overflow:visible;display:flex;align-items:stretch;justify-content:center}
html .alphabet-rail-buttons{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(27,minmax(0,1fr));gap:0;width:100%;height:100%;min-height:0;max-height:810px}
html .library-alphabet button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;max-height:none;padding:0;line-height:1;font-size:12px;font-weight:400;border-radius:3px;background:transparent}
html .library-alphabet button:disabled{opacity:.2}html .library-alphabet button[aria-current=true]{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);font-weight:600}html .library-alphabet button:focus-visible{outline:2px solid var(--accent);outline-offset:0}
.library-service-picker .plex-filter-menu [role=checkbox]{display:flex;justify-content:space-between;gap:16px}.library-service-picker .plex-filter-menu{max-height:min(70dvh,500px);overflow:auto}.artwork-review-remove{margin:5px 0;padding:3px 0;font-size:12px;text-align:left}
@media(max-width:760px){html .library-alphabet{right:2px;top:calc(var(--top-nav-height,122px) + 12px);bottom:18px;width:26px}html .library-alphabet button{font-size:11px}}
html.tv-mode .library-alphabet{top:80px;bottom:20px;right:6px;width:30px}html.tv-mode .alphabet-rail-buttons{min-height:0}html.tv-mode .library-alphabet button{min-height:0;max-height:none}

.artwork-tpdb-result{display:inline-block;margin:5px 8px 0 0;font-size:12px;text-decoration:none}.filtered-tpdb-status{font-size:12px;white-space:normal}

.artwork-tpdb-result{display:inline-flex;align-items:center;gap:3px}.artwork-tpdb-result small{font-size:10px}.artwork-tpdb-result .calendar-source-icon{width:35px;height:18px}.artwork-tpdb-result.is-missing .calendar-source-mark{color:#ec6666!important}.artwork-tpdb-result.is-available .calendar-source-mark{color:#63c785!important}

.tpdb-copy-link{display:inline-flex;align-items:center;background:none;border:0;padding:0;min-height:22px;color:inherit;cursor:pointer}.tpdb-copy-link:hover{color:var(--accent)}.tpdb-copy-link:focus-visible{outline:2px solid #38d9f5;outline-offset:2px}

.notification-media-open{display:block;width:100%;padding:0 36px 0 0;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}.notification-media-open strong{font-weight:600}.notification-media-open p{color:var(--muted)}.notification-media-open:hover strong{color:var(--accent)}.notification-media-open:focus-visible{outline:2px solid var(--accent);outline-offset:6px}.notification-media-open small{color:var(--muted)}

.detail-artwork-matches{margin:12px 0}.detail-artwork-match{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding:5px 0;font-size:12px}.detail-artwork-match .artwork-tpdb-result{margin:0}.detail-artwork-match>small{color:var(--muted)}
