/* Compact navigation and direct-media entry share the interface theme tokens. */
.sidebar .library-navigation{border:1px solid transparent;border-radius:14px;min-width:0}
.sidebar .library-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;border:0;border-radius:11px;padding:12px;color:var(--muted-foreground);background:transparent;text-align:left}
.sidebar .library-toggle>span:first-child{display:flex;gap:12px;align-items:center;min-width:0}
.sidebar .library-toggle strong{font-size:13px;font-weight:650;color:inherit}
.sidebar .library-toggle:hover{background:var(--popover);color:var(--foreground)}
.sidebar .library-navigation.is-current>.library-toggle{color:var(--accent-text)}
.sidebar .library-chevron{display:grid;place-items:center;transition:transform .25s ease}
.sidebar .library-chevron svg{width:16px;height:16px}
.sidebar .library-toggle[aria-expanded=true] .library-chevron{transform:rotate(90deg)}
.sidebar .library-links{display:grid;gap:3px;padding-top:4px}
.sidebar .library-links[hidden]{display:none}
.sidebar .library-links .nav{padding-left:16px;min-height:48px}
.sidebar .library-current{display:block;margin:0 12px 10px 45px;color:var(--muted-foreground);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .library-toggle[aria-expanded=false]{background:var(--muted-surface)}
body .stream-service.external.selected{border-color:color-mix(in srgb,var(--good) 45%,var(--border));background:color-mix(in srgb,var(--good) 6%,var(--card))}
.stream-external-heading{display:flex;gap:18px;align-items:flex-start}
.stream-external-heading>span{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border:1px solid var(--border);border-radius:14px;background:var(--muted-surface);color:var(--good)}
.stream-external-heading h2{margin:0 0 8px}
.stream-external-heading p{margin:0;color:var(--muted-foreground);font-size:13px;max-width:680px}
.stream-external form{margin-top:26px}
.stream-external label{margin-bottom:10px}
.stream-external-entry{display:flex;align-items:center;gap:12px}
.stream-external-entry input{min-width:0;flex:1;min-height:48px}
.stream-external-entry .btn{min-height:48px}
.stream-external .infofoot{margin:14px 0 0;max-width:850px}
.stream-modern-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 26px}
.stream-modern-heading h2{margin:0 0 6px;font-size:22px}
.stream-modern-heading p{margin:0;font-size:13px;color:var(--muted-foreground)}
@media(max-width:600px){.stream-external-heading{gap:12px}.stream-external-heading>span{width:40px;height:40px;border-radius:11px}.stream-external-entry{align-items:stretch;flex-direction:column}.stream-external-entry .btn{width:100%}.stream-modern-heading{align-items:flex-start;flex-direction:column}}

.stream-hub{margin:28px 0;min-width:0}
.stream-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.stream-hub-heading h2{margin:3px 0 0;font-size:24px;letter-spacing:-.04em}
.stream-hub-count{border:1px solid var(--border);border-radius:30px;padding:6px 12px;font-size:11px;color:var(--muted-foreground);white-space:nowrap}
body .stream-hub .stream-catalog.stream-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0;overflow:visible;padding:0}
body .stream-hub .stream-service{--service-accent:#8bdfbd;display:flex;flex-direction:column;align-items:flex-start;gap:18px;position:relative;min-width:0;min-height:218px;padding:22px 18px;border:1px solid var(--border);border-radius:18px;text-align:left;background:var(--card);color:var(--foreground);box-shadow:var(--surface-shadow);isolation:isolate}
body .stream-hub .stream-service.youtube{--service-accent:#ff6471}
body .stream-hub .stream-service.stremio{--service-accent:#b39afa}
body .stream-hub .stream-service.calendar{--service-accent:#efbf82}
:root[data-theme=light] .stream-hub .stream-service{--service-accent:#14724e}
:root[data-theme=light] .stream-hub .stream-service.youtube{--service-accent:#b32b3b}
:root[data-theme=light] .stream-hub .stream-service.stremio{--service-accent:#7150b3}
:root[data-theme=light] .stream-hub .stream-service.calendar{--service-accent:#916018}
body .stream-hub .stream-service::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:var(--service-accent);opacity:0;transition:opacity .2s}
body .stream-hub .stream-service:hover:not(:disabled),body .stream-hub .stream-service:focus-visible{border-color:var(--service-accent);background:var(--popover);transform:translateY(-3px)}
body .stream-hub .stream-service:hover::before,body .stream-hub .stream-service:focus-visible::before,body .stream-hub .stream-service.selected::before{opacity:1}
body .stream-hub .stream-service>svg:first-child{width:44px;height:44px;flex:0 0 44px;margin:0}
body .stream-hub .stream-service-copy{display:block;min-width:0;flex:1}
body .stream-hub .stream-service-copy small{display:block;font-size:10px;line-height:1.3;color:var(--muted-foreground);margin-bottom:5px}
body .stream-hub .stream-service strong{display:block;font-size:19px;line-height:1.3;letter-spacing:-.035em;white-space:normal;overflow-wrap:normal}
body .stream-hub .stream-service-copy .stream-service-description{display:block;margin-top:10px;color:var(--muted-foreground);font-size:12px;line-height:1.6}
body .stream-hub .stream-service-go{display:flex;align-items:center;justify-content:space-between;align-self:stretch;gap:12px;margin:0;font-size:11px;font-weight:600;color:var(--service-accent)}
.stream-service-go svg{width:16px;height:16px}
body .stream-hub .stream-service.selected{background:var(--popover);border-color:var(--service-accent)}
.stream-hub.is-browsing .stream-hub-heading{display:none}
body .stream-hub .stream-catalog.has-selection .stream-service{flex-direction:row;align-items:center;gap:10px;min-height:66px;padding:13px 16px}
body .stream-hub .stream-catalog.has-selection .stream-service>svg:first-child{width:30px;height:30px;flex-basis:30px}
body .stream-hub .stream-catalog.has-selection .stream-service strong{font-size:14px}
body .stream-hub .stream-catalog.has-selection .stream-service-copy small,body .stream-hub .stream-catalog.has-selection .stream-service-description,body .stream-hub .stream-catalog.has-selection .stream-service-go{display:none}
@media(max-width:1200px) and (min-width:701px){body .stream-hub .stream-catalog.stream-choices:not(.has-selection){grid-template-columns:repeat(6,minmax(0,1fr))}body .stream-hub .stream-catalog:not(.has-selection) .stream-service{grid-column:span 2}body .stream-hub .stream-catalog:not(.has-selection) .stream-service:nth-last-child(-n+2){grid-column:span 3}}
@media(max-width:1000px){body .stream-hub .stream-catalog.has-selection{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;gap:9px;padding:6px 4px 12px}body .stream-hub .stream-catalog.has-selection .stream-service{min-width:145px;flex:0 0 auto;scroll-snap-align:start}body .stream-hub .stream-catalog.has-selection .stream-service-copy{flex:0 0 auto}}
@media(max-width:700px){body .stream-hub .stream-catalog.stream-choices:not(.has-selection){grid-template-columns:repeat(2,minmax(0,1fr))}body .stream-hub .stream-service{min-height:190px;padding:20px 16px;gap:14px}body .stream-hub .stream-catalog:not(.has-selection) .stream-service:last-child{grid-column:1/-1;min-height:94px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center}body .stream-hub .stream-catalog:not(.has-selection) .stream-service:last-child .stream-service-go{font-size:0;align-self:center}body .stream-hub .stream-catalog:not(.has-selection) .stream-service:last-child .stream-service-description{margin-top:5px}.stream-hub-heading h2{font-size:22px}}
@media(max-width:360px){body .stream-hub .stream-service{padding:17px 12px}body .stream-hub .stream-service strong{font-size:17px}}
:root[data-tv=true] .stream-hub .stream-service{min-height:240px;padding:26px 22px;gap:20px}
:root[data-tv=true] .stream-hub .stream-service strong{font-size:23px}
:root[data-tv=true] .stream-hub .stream-service-copy .stream-service-description{font-size:15px}
:root[data-tv=true] .stream-hub .stream-service-copy small,:root[data-tv=true] .stream-hub .stream-service-go{font-size:13px}
:root[data-tv=true] .stream-hub .stream-catalog.has-selection .stream-service{min-height:80px}
:root[data-tv=true] .stream-hub .stream-catalog.has-selection .stream-service strong{font-size:18px}
@media(prefers-reduced-motion:reduce){body .stream-hub .stream-service{transition:none;transform:none!important}.stream-hub .stream-service::before{transition:none}}
