@soffits/dsh-media-hub 0.0.0-stage → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/nav.js ADDED
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Where the page is: which tab, and under Discover which source and
3
+ * category. It lives in the URL query (vs-tab, vs-source, vs-kind) so a
4
+ * refresh, the back button and a pasted link keep it; the last source and
5
+ * category are also remembered per browser. Pure: no DOM, so it runs in Node.
6
+ */
7
+
8
+ export const TABS = Object.freeze(['watching', 'library', 'discover'])
9
+ export const DEFAULT_TAB = 'watching'
10
+ export const PARAM_PREFIX = 'vs-'
11
+ export const PARAMS = Object.freeze({ tab: `${PARAM_PREFIX}tab`, source: `${PARAM_PREFIX}source`, kind: `${PARAM_PREFIX}kind`, work: `${PARAM_PREFIX}work` })
12
+
13
+ const MEMORY_KEY = 'dsh-media-hub:discover'
14
+
15
+ /** Whether a query string carries any of the page's own parameters. */
16
+ export const hasNavParams = search => [...new URLSearchParams(search).keys()].some(key => key.startsWith(PARAM_PREFIX))
17
+
18
+ /** @returns {{ tab: string, source: string | null, kind: string | null, work: string | null }} */
19
+ export function readNav(search) {
20
+ const params = new URLSearchParams(search)
21
+ const tab = params.get(PARAMS.tab)
22
+ return {
23
+ tab: TABS.includes(tab) ? tab : DEFAULT_TAB,
24
+ source: params.get(PARAMS.source) || null,
25
+ kind: params.get(PARAMS.kind) || null,
26
+ work: params.get(PARAMS.work) || null,
27
+ }
28
+ }
29
+
30
+ /**
31
+ * The query string for a place, other parameters kept. The default tab
32
+ * and what only Discover uses are left out when they do not apply.
33
+ */
34
+ export function writeNav(search, nav) {
35
+ const params = new URLSearchParams(search)
36
+ for (const name of Object.values(PARAMS)) params.delete(name)
37
+ if (nav.tab !== DEFAULT_TAB) params.set(PARAMS.tab, nav.tab)
38
+ if (nav.tab === 'discover') {
39
+ if (nav.source) params.set(PARAMS.source, nav.source)
40
+ if (nav.kind) params.set(PARAMS.kind, nav.kind)
41
+ if (nav.work && nav.source) params.set(PARAMS.work, nav.work)
42
+ }
43
+ const text = params.toString()
44
+ return text === '' ? '' : `?${text}`
45
+ }
46
+
47
+ /** The query string without the page's parameters, for when the page is left. */
48
+ export const clearNav = search => writeNav(search, { tab: DEFAULT_TAB })
49
+
50
+ /** The source id that searches every source with the chosen category at once (src/sources/index.js ALL_SOURCES). */
51
+ export const ALL_SOURCE = 'all'
52
+
53
+ /** Whether typed text is a web address, what Link takes. */
54
+ export function isWebAddress(text) {
55
+ try {
56
+ return ['http:', 'https:'].includes(new URL(String(text).trim()).protocol)
57
+ } catch {
58
+ return false
59
+ }
60
+ }
61
+
62
+ /** Whether a source takes a web address (Link) rather than a search. */
63
+ export const takesUrl = source => source?.input === 'url'
64
+
65
+ /** With more than one searchable source, All sources first: every category any of them has, each once, in the order they come. */
66
+ export function withAll(sources, allLabel) {
67
+ const searchable = sources.filter(source => !takesUrl(source))
68
+ if (searchable.length < 2) return sources
69
+ const kinds = []
70
+ for (const source of searchable) {
71
+ for (const kind of source.kinds) if (!kinds.some(known => known.id === kind.id)) kinds.push(kind)
72
+ }
73
+ return [{ id: ALL_SOURCE, label: allLabel, kinds }, ...sources]
74
+ }
75
+
76
+ /** The source to show: what the URL asks for, else the one used last, else the first. */
77
+ export function pickSource(sources, wanted, remembered) {
78
+ return (sources.find(s => s.id === wanted) ?? sources.find(s => s.id === remembered) ?? sources[0]) ?? null
79
+ }
80
+
81
+ /** The category to show for a source: what the URL asks for, else the one used last for it, else its first. */
82
+ export function pickKind(source, wanted, remembered) {
83
+ if (source === null || source.kinds.length === 0 || takesUrl(source)) return null
84
+ return (source.kinds.find(k => k.id === wanted) ?? source.kinds.find(k => k.id === remembered) ?? source.kinds[0]).id
85
+ }
86
+
87
+ /** The browser's local storage, or null where it is blocked. */
88
+ export function browserStorage() {
89
+ try {
90
+ return globalThis.localStorage ?? null
91
+ } catch {
92
+ return null
93
+ }
94
+ }
95
+
96
+ /** The last source and, per source, category used in this browser. */
97
+ export function readMemory(storage) {
98
+ try {
99
+ const memory = JSON.parse(storage?.getItem(MEMORY_KEY) ?? 'null')
100
+ return { source: typeof memory?.source === 'string' ? memory.source : null, kinds: memory?.kinds && typeof memory.kinds === 'object' ? memory.kinds : {} }
101
+ } catch {
102
+ return { source: null, kinds: {} }
103
+ }
104
+ }
105
+
106
+ export function remember(storage, { source, kind }) {
107
+ try {
108
+ const memory = readMemory(storage)
109
+ if (source) memory.source = source
110
+ if (source && kind) memory.kinds[source] = kind
111
+ storage?.setItem(MEMORY_KEY, JSON.stringify(memory))
112
+ } catch {
113
+ // Storage may be full or blocked; the choice is then simply not remembered.
114
+ }
115
+ }
package/web/page.js ADDED
@@ -0,0 +1,104 @@
1
+ /**
2
+ * The media hub page: three tabs (Watching, Library, Discover) or one
3
+ * room. client.js renders `Page` once this module has loaded. The tab, and
4
+ * under Discover the source and category, live in the URL (web/nav.js).
5
+ */
6
+ import { ShelfSection } from './books-view.js'
7
+ import { DiscoverView } from './discover-view.js'
8
+ import { LibrarySection } from './library-view.js'
9
+ import { clearNav, readNav, TABS, writeNav } from './nav.js'
10
+ import { RoomView } from './room-view.js'
11
+ import { WatchingTab, withNews } from './watching-view.js'
12
+ import { Known, P, POLL_MS, api, h, React, setWords } from './ui.js'
13
+
14
+ /** Marks the history entries this page added, so a back control knows going back stays on the page. */
15
+ const PUSHED = 'vsyncPushed'
16
+
17
+ /** The page's place, kept in the URL: tab changes add a history entry (back goes to the last tab), the rest replace it. */
18
+ function useNav() {
19
+ const [nav, setNav] = React.useState(() => readNav(location.search))
20
+ const current = React.useRef(nav)
21
+ React.useEffect(() => {
22
+ const restore = () => { current.current = readNav(location.search); setNav(current.current) }
23
+ window.addEventListener('popstate', restore)
24
+ return () => {
25
+ window.removeEventListener('popstate', restore)
26
+ history.replaceState(history.state, '', `${location.pathname}${clearNav(location.search)}${location.hash}`)
27
+ }
28
+ }, [])
29
+ const go = React.useCallback((patch, { replace = false } = {}) => {
30
+ const next = { ...current.current, ...patch }
31
+ const before = current.current
32
+ if (next.tab === before.tab && next.source === before.source && next.kind === before.kind && next.work === before.work) return
33
+ // A new place (another tab, a work opened) is a history entry of its own, so back returns to the one before.
34
+ const push = !replace && (next.tab !== before.tab || next.work !== before.work)
35
+ history[push ? 'pushState' : 'replaceState'](push ? { ...history.state, [PUSHED]: true } : history.state, '', `${location.pathname}${writeNav(location.search, next)}${location.hash}`)
36
+ current.current = next
37
+ setNav(next)
38
+ }, [])
39
+ return [nav, go]
40
+ }
41
+
42
+ function Home({ t, nav, go, onOpen, rooms, library, load }) {
43
+ /** Discover keeps its search and results while another tab is open, once it has been visited. */
44
+ const [visitedDiscover, setVisitedDiscover] = React.useState(nav.tab === 'discover')
45
+ React.useEffect(() => { if (nav.tab === 'discover') setVisitedDiscover(true) }, [nav.tab])
46
+
47
+ // Coming back from a room, what the page shows is fresh, not up to one poll old.
48
+ React.useEffect(() => { load() }, [load])
49
+
50
+ const count = tab => (tab === 'watching' && (rooms?.length ?? 0) + withNews(library).length > 0 ? (rooms?.length ?? 0) + withNews(library).length : null)
51
+
52
+ return h('div', { className: 'vsync-scroll' },
53
+ h('div', { className: 'vsync-content' },
54
+ h('header', { className: 'vsync-heading' },
55
+ h('h1', null, t('title')),
56
+ h('p', { className: 'vsync-note' }, t('note'))),
57
+ h(P.SegmentedTabs, {
58
+ className: 'vsync-pageTabs',
59
+ label: t('title'),
60
+ value: nav.tab,
61
+ onChange: tab => go({ tab }),
62
+ items: TABS.map(tab => ({
63
+ value: tab,
64
+ id: `vsync-tab-${tab}`,
65
+ panelId: `vsync-panel-${tab}`,
66
+ label: [t(`tab.${tab}`), count(tab) !== null && h(P.Tag, { key: 'n', tone: 'quiet', className: 'vsync-tabCount' }, count(tab))],
67
+ })),
68
+ }),
69
+ nav.tab === 'watching' && h('div', { id: 'vsync-panel-watching', role: 'tabpanel', 'aria-labelledby': 'vsync-tab-watching' },
70
+ h(WatchingTab, { t, rooms, library, onOpen, onChanged: load, onGo: tab => go({ tab }), onOpenWork: (source, work) => go({ tab: 'discover', source, kind: work.kind ?? null, work: work.id }) })),
71
+ nav.tab === 'library' && h('div', { id: 'vsync-panel-library', role: 'tabpanel', 'aria-labelledby': 'vsync-tab-library' },
72
+ h(LibrarySection, { t, library, onOpen, onChanged: load, onOpenWork: (source, work) => go({ tab: 'discover', source, kind: work.kind ?? null, work: work.id }) }),
73
+ h(ShelfSection, { t })),
74
+ visitedDiscover && h('div', { id: 'vsync-panel-discover', role: 'tabpanel', 'aria-labelledby': 'vsync-tab-discover', hidden: nav.tab !== 'discover' },
75
+ h(DiscoverView, { t, nav, onNav: go, onOpen, onSaved: load, onBack: () => (history.state?.[PUSHED] ? history.back() : go({ work: null }, { replace: true })) }))))
76
+ }
77
+
78
+ export function Page({ t, initialRoom }) {
79
+ setWords(t)
80
+ const [roomId, setRoomId] = React.useState(initialRoom)
81
+ const [nav, go] = useNav()
82
+ const [rooms, setRooms] = React.useState(undefined)
83
+ const [library, setLibrary] = React.useState(null)
84
+
85
+ const load = React.useCallback(async () => {
86
+ const [list, lib] = await Promise.all([api('rooms'), api('library')])
87
+ // A room someone watches alone is theirs: it is listed once they open it to others.
88
+ if (list.rooms) setRooms(list.rooms.filter(room => room.together))
89
+ if (lib.shows) setLibrary(lib)
90
+ }, [])
91
+
92
+ React.useEffect(() => {
93
+ let live = true
94
+ const tick = () => { if (live) load() }
95
+ tick()
96
+ const timer = setInterval(tick, POLL_MS)
97
+ return () => { live = false; clearInterval(timer) }
98
+ }, [load])
99
+
100
+ const known = React.useMemo(() => ({ library, rooms, reload: load }), [library, rooms, load])
101
+ return h(Known.Provider, { value: known }, roomId === null
102
+ ? h(Home, { t, nav, go, onOpen: setRoomId, rooms, library, load })
103
+ : h(RoomView, { key: roomId, t, roomId, onLeave: () => setRoomId(null), onOpen: setRoomId }))
104
+ }
package/web/panel.css ADDED
@@ -0,0 +1,363 @@
1
+ /* Video Sync page styles. Only the host theme tokens (--dsw-*), except the player's stage. */
2
+ .vsync-page{width:100%;min-width:0;height:100%;min-height:0;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-base);font-size:14px;line-height:1.6;display:flex;flex-direction:column;overflow:hidden}
3
+ .vsync-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;--dsh-scrollbar-width:9px;--dsh-scrollbar-thumb-border:2px}
4
+ .vsync-content{max-width:960px;margin:0 auto;padding:0 clamp(24px,4vw,48px) 48px}
5
+ @media (width<=767px){.vsync-content{padding-inline:20px}}
6
+ .vsync-heading{padding-top:28px;margin-bottom:24px}
7
+ [data-platform=darwin] .vsync-heading{padding-top:calc(28px + var(--dsh-frame-top-clearance,0px))}
8
+ .vsync-heading h1{margin:0;font-size:20px;font-weight:500;line-height:28px}
9
+ .vsync-note{margin:4px 0 0;color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px}
10
+ .vsync-section{margin-bottom:28px}
11
+ .vsync-section h2{margin:0 0 8px;color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500;line-height:20px}
12
+ .vsync-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
13
+ .vsync-row{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:8px;border-radius:12px}
14
+ @media (hover:hover){.vsync-row:hover{background:var(--dsw-alias-interactive-bg-hover)}}
15
+ .vsync-glyph{flex:none;width:16px;height:16px;color:var(--dsw-alias-label-tertiary)}
16
+ .vsync-rowText{flex:1;min-width:0;display:flex;flex-direction:column}
17
+ .vsync-rowTitle{font-weight:500;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
18
+ .vsync-rowMeta{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:21px;overflow-wrap:anywhere}
19
+ .vsync-rowMeta>span+span:before{content:" · ";padding:0 2px}
20
+ .vsync-emptyState{display:flex;flex-direction:column;align-items:center;padding:40px 20px 36px;color:var(--dsw-alias-label-caption);text-align:center}
21
+ .vsync-emptyTitle{margin:12px 0 0;color:var(--dsw-alias-label-tertiary);font-size:14px;line-height:1.6}
22
+ .vsync-emptyHint{margin:2px 0 0;color:var(--dsw-alias-label-caption);font-size:13px;line-height:20px}
23
+ .vsync-empty{margin:0;padding:8px;color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:21px}
24
+ .vsync-form{display:flex;gap:8px;align-items:center;margin-bottom:8px}
25
+ .vsync-field{box-sizing:border-box;flex:1;min-width:0;height:36px;padding:0 12px;border:.5px solid var(--dsw-alias-border-l3);border-radius:12px;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:14px;outline:none;transition:border-color .15s}
26
+ @media (hover:hover){.vsync-field:hover{border-color:var(--dsw-alias-border-l2)}}
27
+ .vsync-field:focus{border-color:var(--dsw-alias-state-business-primary)}
28
+ .vsync-field::placeholder{color:var(--dsw-alias-label-caption)}
29
+ @media (pointer:coarse){.vsync-field{font-size:16px}}
30
+ .vsync-error{margin:0 0 8px;color:var(--dsw-alias-state-error-primary);font-size:12px;line-height:20px}
31
+ .vsync-btn{box-sizing:border-box;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:28px;padding:0 10px;border:none;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:12px;line-height:18px;cursor:pointer;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsh-button-outline-color,var(--dsw-alias-border-l3));text-decoration:none;white-space:nowrap}
32
+ .vsync-btn:disabled{cursor:not-allowed;opacity:.4}
33
+ @media (hover:hover){.vsync-btn:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}
34
+ .vsync-btnLarge{height:36px;padding:0 14px;font-size:14px;border-radius:var(--dsw-radius-md)}
35
+ .vsync-primary{background:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-label-on-color,#fff);box-shadow:none}
36
+ @media (hover:hover){.vsync-primary:hover:not(:disabled){background:var(--dsw-alias-state-business-primary);opacity:.9}}
37
+ .vsync-icon{box-sizing:border-box;flex:none;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--dsw-alias-label-secondary);cursor:pointer}
38
+ @media (hover:hover){.vsync-icon:hover{background:var(--dsw-alias-interactive-bg-hover)}}
39
+ .vsync-icon:active{background:var(--dsw-alias-interactive-bg-active)}
40
+ .vsync-icon svg{width:16px;height:16px}
41
+ .vsync-bar{flex:none;display:flex;align-items:center;gap:8px;height:44px;padding:0 12px 0 8px;border-bottom:.5px solid var(--dsw-alias-border-l3)}
42
+ [data-platform=darwin] .vsync-bar{margin-top:var(--dsh-frame-top-clearance,0px)}
43
+ .vsync-barTitle{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;white-space:nowrap;overflow:hidden}
44
+ .vsync-barTitle strong{font-weight:500;overflow:hidden;text-overflow:ellipsis}
45
+ .vsync-barTitle span{color:var(--dsw-alias-label-tertiary);font-size:13px;overflow:hidden;text-overflow:ellipsis}
46
+ .vsync-members{flex:none;display:flex;align-items:center;gap:10px;color:var(--dsw-alias-label-secondary);font-size:12px}
47
+ .vsync-member{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
48
+ .vsync-member:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--dsw-alias-state-success-primary,#3fb950)}
49
+ .vsync-member[data-wait=loading]:before{background:var(--dsw-alias-state-warning-primary,#d29922)}
50
+ .vsync-status{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px}
51
+ .vsync-body{flex:1;min-height:0;display:flex}
52
+ .vsync-stageWrap{position:relative;flex:1;min-width:0;display:flex;background:#000}
53
+ .vsync-stage{flex:1;min-width:0;display:flex}
54
+ .vsync-media{flex:1;width:100%;height:100%;border:0;display:block;background:#000;object-fit:contain}
55
+ .vsync-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:rgba(255,255,255,.72);font-size:13px;pointer-events:none}
56
+ .vsync-overlay button{pointer-events:auto}
57
+ .vsync-wait{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:240px;max-width:min(360px,80%);padding:20px 24px;border-radius:14px;background:rgba(20,20,22,.82);backdrop-filter:blur(8px);color:rgba(255,255,255,.9);pointer-events:auto}
58
+ .vsync-waitTitle{margin:0;font-size:15px;font-weight:500;line-height:22px;text-align:center}
59
+ .vsync-preparing{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:min(360px,86%);text-align:center}
60
+ .vsync-preparing p{margin:0;font-variant-numeric:tabular-nums}
61
+ .vsync-progress{appearance:none;-webkit-appearance:none;align-self:stretch;width:100%;min-width:200px;height:4px;border:0;border-radius:2px;background:rgba(255,255,255,.18);overflow:hidden}
62
+ .vsync-progress::-webkit-progress-bar{background:rgba(255,255,255,.18);border-radius:2px}
63
+ .vsync-progress::-webkit-progress-value{background:rgba(255,255,255,.85);border-radius:2px;transition:width .4s}
64
+ .vsync-progress::-moz-progress-bar{background:rgba(255,255,255,.85);border-radius:2px}
65
+ .vsync-waitTitle{font-variant-numeric:tabular-nums}
66
+ .vsync-waitList{list-style:none;margin:0;padding:0;align-self:stretch;display:flex;flex-direction:column;gap:8px}
67
+ .vsync-waitMember{display:flex;align-items:center;gap:10px;font-size:13px;line-height:20px}
68
+ .vsync-waitMember .vsync-spinner{width:14px;height:14px;border-color:rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.85)}
69
+ .vsync-waitMark{flex:none;display:inline-flex;width:14px;height:14px;color:var(--dsw-alias-state-success-primary,#3fb950)}
70
+ .vsync-waitName{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
71
+ .vsync-waitState{flex:none;color:rgba(255,255,255,.55);font-size:12px}
72
+ .vsync-wait .vsync-btn{color:#fff;box-shadow:inset 0 0 0 .5px rgba(255,255,255,.35)}
73
+ @media (hover:hover){.vsync-wait .vsync-btn:hover{background:rgba(255,255,255,.12)}}
74
+ .vsync-toasts{position:absolute;top:12px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;z-index:2}
75
+ .vsync-toast{padding:4px 12px;border-radius:999px;background:var(--dsw-alias-tooltip-bg,rgba(0,0,0,.75));color:var(--dsw-static-neutral-bluish-00,#fff);font-size:13px;line-height:20px;white-space:nowrap;animation:vsync-in .15s var(--ds-ease-in-out,ease)}
76
+ @keyframes vsync-in{0%{opacity:0;transform:translateY(-4px)}}
77
+ @media (prefers-reduced-motion:reduce){.vsync-toast{animation:none}}
78
+ .vsync-episodes{flex:none;width:280px;display:flex;flex-direction:column;border-left:.5px solid var(--dsw-alias-border-l4);min-height:0}
79
+ .vsync-episodes h2{margin:0;padding:12px 16px 6px;color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500;line-height:20px}
80
+ .vsync-episodeList{list-style:none;margin:0;padding:0 8px 12px;overflow:auto;flex:1;min-height:0}
81
+ .vsync-episode{box-sizing:border-box;width:100%;display:flex;align-items:baseline;gap:10px;padding:6px 8px;border:0;border-radius:10px;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;line-height:20px;text-align:left;cursor:pointer}
82
+ @media (hover:hover){.vsync-episode:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}
83
+ .vsync-episode:disabled{cursor:default;color:var(--dsw-alias-label-caption)}
84
+ .vsync-episode[aria-current=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-business-primary);font-weight:500}
85
+ .vsync-episodeNo{flex:none;min-width:20px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums}
86
+ .vsync-episode[aria-current=true] .vsync-episodeNo{color:inherit}
87
+ .vsync-episodeTitle{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
88
+ .vsync-episodeState{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400}
89
+ @media (width<=900px){.vsync-body{flex-direction:column}.vsync-stageWrap{flex:none;aspect-ratio:16/9}.vsync-episodes{width:auto;flex:1;border-left:0;border-top:.5px solid var(--dsw-alias-border-l4)}.vsync-members .vsync-memberName{display:none}}
90
+ /* Search */
91
+ .vsync-search{position:relative;display:flex;gap:8px;align-items:center;margin-bottom:10px}
92
+ .vsync-searchIcon{position:absolute;left:12px;top:10px;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);pointer-events:none}
93
+ .vsync-searchField{padding-left:36px}
94
+ .vsync-searchField::-webkit-search-cancel-button{cursor:pointer}
95
+ .vsync-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
96
+ .vsync-chip,.vsync-tab{box-sizing:border-box;height:26px;padding:0 10px;border:none;border-radius:999px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;line-height:18px;cursor:pointer;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3)}
97
+ @media (hover:hover){.vsync-chip:hover,.vsync-tab:hover{background:var(--dsw-alias-interactive-bg-hover)}}
98
+ .vsync-chip[aria-selected=true],.vsync-tab[aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l2)}
99
+ .vsync-tab[aria-selected=true]{font-weight:500}
100
+ .vsync-results{margin-bottom:8px;gap:6px}
101
+ /* Result cards */
102
+ .vsync-card{box-sizing:border-box;display:flex;align-items:flex-start;gap:14px;width:100%;padding:10px;border-radius:12px;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3)}
103
+ .vsync-cover{flex:none;box-sizing:border-box;width:84px;height:112px;border-radius:8px;object-fit:cover;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-interactive-bg-hover))}
104
+ .vsync-coverEmpty{display:inline-flex;align-items:center;justify-content:center;color:var(--dsw-alias-label-caption)}
105
+ .vsync-coverSmall{width:40px;height:54px;border-radius:6px}
106
+ .vsync-cardBody{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
107
+ .vsync-cardHead{display:flex;align-items:baseline;gap:8px;min-width:0}
108
+ .vsync-cardHead .vsync-rowTitle{flex:0 1 auto;min-width:0}
109
+ .vsync-score{flex:none;color:var(--dsw-alias-state-warning-primary,#c98a00);font-size:13px;font-weight:500}
110
+ .vsync-badge{flex:none;padding:0 8px;border-radius:999px;background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);font-size:11px;line-height:18px}
111
+ .vsync-tags{display:flex;flex-wrap:wrap;gap:4px}
112
+ .vsync-tag{padding:0 8px;border-radius:999px;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3)}
113
+ .vsync-cardFoot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:4px}
114
+ .vsync-details{display:flex;flex-direction:column;gap:6px;padding:4px 0}
115
+ .vsync-fullBlurb{margin:0;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:20px}
116
+ .vsync-facts{display:grid;grid-template-columns:max-content 1fr;gap:2px 12px;margin:0;font-size:13px;line-height:20px}
117
+ .vsync-facts dt{color:var(--dsw-alias-label-tertiary)}
118
+ .vsync-facts dd{margin:0;overflow-wrap:anywhere}
119
+ .vsync-subheading{margin:8px 0 0;color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500;line-height:20px}
120
+ .vsync-relatedList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
121
+ .vsync-relatedButton{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:6px 8px;border:none;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l4)}
122
+ @media (hover:hover){.vsync-relatedButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}
123
+ .vsync-relatedText{flex:1;min-width:0;display:flex;flex-direction:column}
124
+ .vsync-relatedButton>svg{flex:none;color:var(--dsw-alias-label-caption)}
125
+ .vsync-focus{display:flex;flex-direction:column;gap:12px}
126
+ .vsync-back{align-self:flex-start;display:inline-flex;align-items:center;gap:4px}
127
+ .vsync-blurb{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
128
+ .vsync-actions{flex:none;display:inline-flex;align-items:center;gap:6px}
129
+ .vsync-pending{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:28px}
130
+ .vsync-account{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:28px;white-space:nowrap}
131
+ /* Inline confirmation */
132
+ .vsync-confirm{flex:none;display:inline-flex;align-items:center;gap:6px;max-width:100%}
133
+ .vsync-confirmText{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
134
+ .vsync-danger{background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-on-color,#fff);box-shadow:none}
135
+ @media (hover:hover){.vsync-danger:hover:not(:disabled){background:var(--dsw-alias-state-error-primary);opacity:.9}}
136
+ /* Menu */
137
+ .vsync-menuWrap{position:relative;display:inline-flex}
138
+ .vsync-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:20;display:flex;flex-direction:column;min-width:140px;padding:4px;border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1,var(--dsw-alias-bg-base));box-shadow:var(--dsw-shadow-lv3)}
139
+ .vsync-menuItem{display:flex;align-items:center;min-height:30px;padding:4px 8px;border:none;border-radius:var(--dsw-radius-md);background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;line-height:20px;text-align:left;cursor:pointer;white-space:nowrap}
140
+ @media (hover:hover){.vsync-menuItem:hover{background:var(--dsw-alias-interactive-bg-hover)}.vsync-menuDanger:hover{background:var(--dsw-alias-interactive-bg-hover-danger,var(--dsw-alias-interactive-bg-hover))}}
141
+ .vsync-menuDanger{color:var(--dsw-alias-state-error-primary)}
142
+ /* Library */
143
+ .vsync-sectionHead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
144
+ .vsync-sectionHead h2{margin:0}
145
+ .vsync-sectionMeta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;font-variant-numeric:tabular-nums}
146
+ .vsync-show{list-style:none}
147
+ .vsync-expand{flex:none;width:20px;height:28px;margin-right:-6px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--dsw-alias-label-tertiary);cursor:pointer}
148
+ .vsync-expand svg{width:12px;height:12px}
149
+ .vsync-poster{flex:none;box-sizing:border-box;width:64px;height:36px;border-radius:6px;object-fit:cover;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-interactive-bg-hover))}
150
+ .vsync-posterEmpty{display:inline-flex;align-items:center;justify-content:center;color:var(--dsw-alias-label-caption)}
151
+ .vsync-titleButton{display:block;max-width:100%;padding:0;border:none;background:transparent;color:inherit;font:inherit;font-weight:500;text-align:left;cursor:pointer}
152
+ .vsync-inline{height:28px;font-weight:500;width:100%;max-width:420px}
153
+ .vsync-subrows{list-style:none;margin:0 0 6px;padding:0 0 0 98px;display:flex;flex-direction:column;gap:1px}
154
+ .vsync-subrow{display:flex;align-items:center;gap:6px;min-height:30px;padding-right:8px;border-radius:10px}
155
+ @media (hover:hover){.vsync-subrow:hover{background:var(--dsw-alias-interactive-bg-hover)}}
156
+ .vsync-subrowMain{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px;padding:5px 8px;border:none;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;line-height:20px;text-align:left;cursor:pointer}
157
+ .vsync-subrowDelete{width:24px;height:24px;opacity:0}
158
+ .vsync-subrow:hover .vsync-subrowDelete,.vsync-subrowDelete:focus-visible{opacity:1}
159
+ @media (hover:none){.vsync-subrowDelete{opacity:1}}
160
+ .vsync-icon:disabled{cursor:not-allowed;opacity:.35}
161
+ @media (width<=767px){.vsync-cover{width:64px;height:86px}.vsync-cardFoot .vsync-actions{flex-wrap:wrap}.vsync-subrows{padding-left:24px}.vsync-poster{width:48px;height:27px}.vsync-confirmText{white-space:normal}.vsync-row{flex-wrap:wrap}.vsync-row>.vsync-actions,.vsync-row>.vsync-confirm{margin-left:auto}}
162
+ /* Watched marks */
163
+ .vsync-episodeMain{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
164
+ .vsync-episode{align-items:center}
165
+ .vsync-watchBar{display:block;height:2px;border-radius:1px;background:var(--dsw-alias-border-l3);overflow:hidden}
166
+ .vsync-watchBar>span{display:block;height:100%;background:var(--dsw-alias-label-tertiary)}
167
+ .vsync-watchCheck{flex:none;display:inline-flex;color:var(--dsw-alias-label-caption)}
168
+ .vsync-episode[data-watch=watched] .vsync-episodeTitle,.vsync-episode[data-watch=watched] .vsync-episodeNo,.vsync-subrow[data-watch=watched] .vsync-episodeTitle,.vsync-subrow[data-watch=watched] .vsync-episodeNo{color:var(--dsw-alias-label-caption)}
169
+ .vsync-subrowMain{align-items:center}
170
+ .vsync-rowMeta .vsync-menuWrap{vertical-align:baseline}
171
+ .vsync-metaButton{padding:0;border:none;background:transparent;color:var(--dsw-alias-state-warn-label,var(--dsw-alias-label-secondary));font:inherit;font-size:inherit;line-height:inherit;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
172
+ @media (hover:hover){.vsync-metaButton:hover{color:var(--dsw-alias-label-primary)}}
173
+ .vsync-rowMeta .vsync-menu{right:auto;left:0}
174
+ .vsync-subrow .vsync-watchBar{max-width:180px}
175
+
176
+ .vsync-spinner{display:inline-block;flex:none;width:12px;height:12px;border:1.5px solid var(--dsw-alias-border-l3);border-top-color:var(--dsw-alias-label-secondary);border-radius:50%;animation:vsync-spin .8s linear infinite;vertical-align:-2px}
177
+ @keyframes vsync-spin{to{transform:rotate(1turn)}}
178
+ .vsync-chip[data-loading=true]{display:inline-flex;align-items:center;gap:6px}
179
+ .vsync-skeleton{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
180
+ .vsync-skeletonRow{height:52px;border-radius:12px;background:var(--dsw-alias-interactive-bg-hover);animation:vsync-pulse 1.2s ease-in-out infinite}
181
+ .vsync-skeletonRow:nth-child(2){animation-delay:.15s}
182
+ .vsync-skeletonRow:nth-child(3){animation-delay:.3s}
183
+ @keyframes vsync-pulse{50%{opacity:.45}}
184
+ .vsync-pending{display:inline-flex;align-items:center;gap:6px}
185
+ .vsync-subrow[data-cached=false] .vsync-episodeTitle,.vsync-subrow[data-cached=false] .vsync-episodeNo,.vsync-episode[data-cached=false] .vsync-episodeTitle,.vsync-episode[data-cached=false] .vsync-episodeNo{color:var(--dsw-alias-label-caption)}
186
+ .vsync-cacheDot{flex:none;width:6px;height:6px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--dsw-alias-label-caption)}
187
+ @media (prefers-reduced-motion:reduce){.vsync-spinner{animation-duration:2.4s}.vsync-skeletonRow{animation:none}}
188
+ /* Tabs, source picker */
189
+ .vsync-picker{margin-bottom:12px}
190
+ .vsync-segment{display:inline-flex;max-width:100%;box-sizing:border-box;gap:2px;margin-bottom:10px;padding:2px;overflow-x:auto;border-radius:12px;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3);scrollbar-width:none}
191
+ .vsync-segment::-webkit-scrollbar{display:none}
192
+ .vsync-seg{flex:none;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 16px;border:none;border-radius:10px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
193
+ @media (hover:hover){.vsync-seg:hover{background:var(--dsw-alias-interactive-bg-hover)}}
194
+ .vsync-seg[aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);font-weight:500;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l2)}
195
+ .vsync-segIcon{display:inline-flex}
196
+ .vsync-picker .vsync-tabs{margin-bottom:0}
197
+ .vsync-emptyActions{margin-top:16px;display:inline-flex;gap:8px}
198
+ @media (width<=767px){.vsync-segment{display:flex}.vsync-seg{flex:1 0 auto}}
199
+ /* Library details, room preview, avatars, room side tabs */
200
+ .vsync-posterCover{width:36px;height:48px;object-fit:cover;border-radius:6px}
201
+ .vsync-showDetails{padding:4px 8px 12px 48px}
202
+ .vsync-detailsToggle{align-self:flex-start}
203
+ .vsync-preview{flex:none;width:96px;height:54px;border-radius:8px;object-fit:cover;background:var(--dsw-alias-interactive-bg-hover)}
204
+ .vsync-roomBar{display:block;margin-top:4px;max-width:240px}
205
+ .vsync-roomWho{display:inline-flex;align-items:center}
206
+ .vsync-avatarWrap{position:relative;display:inline-flex}
207
+ .vsync-avatarStack{display:inline-flex;align-items:center;padding:0;border:none;background:transparent;cursor:pointer}
208
+ .vsync-avatar{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:-6px;border-radius:50%;object-fit:cover;border:1.5px solid var(--dsw-alias-bg-base);color:#fff;font-size:10px;font-weight:500;line-height:1}
209
+ .vsync-avatarStack .vsync-avatar:first-child{margin-left:0}
210
+ .vsync-avatarMore{background:var(--dsw-alias-label-tertiary)}
211
+ .vsync-avatarMenu{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:190px;margin:0;padding:6px;list-style:none;border-radius:12px;background:var(--dsw-alias-bg-base);box-shadow:0 8px 24px rgba(0,0,0,.16),inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary)}
212
+ .vsync-rowMeta .vsync-avatarMenu{left:0;right:auto}
213
+ .vsync-avatarItem{display:flex;align-items:center;gap:8px;padding:4px 6px;white-space:nowrap}
214
+ .vsync-avatarItem .vsync-avatar{margin-left:0}
215
+ .vsync-avatarName{flex:1}
216
+ .vsync-avatarState{color:var(--dsw-alias-label-tertiary);font-size:12px}
217
+ .vsync-barCover{flex:none;display:inline-flex}
218
+ .vsync-barCover .vsync-cover{width:28px;height:38px}
219
+ .vsync-sideTabs{display:flex;gap:6px;padding:10px 12px 4px}
220
+ .vsync-about{padding:10px 12px 16px;overflow:auto}
221
+ .vsync-aboutHead{display:flex;gap:12px;margin-bottom:8px}
222
+ .vsync-aboutTitle{display:flex;flex-direction:column;gap:2px;min-width:0}
223
+ .vsync-nextSeason{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 12px 12px;padding:8px 10px;border-radius:10px;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3)}
224
+ .vsync-nextSeason[data-last=true]{box-shadow:inset 0 0 0 1px var(--dsw-alias-state-business-primary)}
225
+ .vsync-badgeHere{color:var(--dsw-alias-state-business-primary)}
226
+ .vsync-preload{flex:none;position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
227
+ .vsync-following{color:var(--dsw-alias-state-business-primary)}
228
+ /* Library rows say the short thing first, the on-disk details muted below; Details is a plain link in the accent colour */
229
+ .vsync-rowMuted{color:var(--dsw-alias-label-caption)}
230
+ .vsync-detailsToggle{color:var(--dsw-alias-state-business-primary);text-decoration:none;align-self:flex-start}
231
+ @media (hover:hover){.vsync-detailsToggle:hover{color:var(--dsw-alias-state-business-primary);text-decoration:underline}}
232
+ .vsync-content,.vsync-picker,.vsync-card,.vsync-cardBody,.vsync-show,.vsync-tabPanel{min-width:0}
233
+ .vsync-rowTitle,.vsync-tag{overflow-wrap:anywhere}
234
+ @media (pointer:coarse){.vsync-icon{width:40px;height:40px}.vsync-btn{min-height:36px}.vsync-chip,.vsync-tab{height:32px}.vsync-seg{height:36px}}
235
+ /* Phones */
236
+ @media (width<=640px){
237
+ .vsync-note{display:none}
238
+ .vsync-heading{padding-top:14px;margin-bottom:6px}
239
+ .vsync-heading h1{font-size:17px;line-height:24px}
240
+ .vsync-pageTabs{max-width:none;margin-bottom:14px}
241
+ .vsync-searchField{flex:1 1 auto;min-width:0}
242
+ .vsync-search .vsync-btnLarge{flex:none;height:40px;padding-inline:14px}
243
+ .vsync-segment{width:100%}
244
+ .vsync-row{flex-wrap:wrap;align-items:flex-start}
245
+ .vsync-row>.vsync-rowText{flex:1 1 0;min-width:0}
246
+ .vsync-row>.vsync-actions,.vsync-row>.vsync-confirm{flex:1 1 100%;margin-left:0}
247
+ .vsync-row>.vsync-actions .vsync-btn{flex:1;height:36px}
248
+ .vsync-posterCover{width:56px;height:75px}
249
+ .vsync-poster{width:96px;height:54px}
250
+ .vsync-preview{width:96px;height:54px}
251
+ .vsync-showDetails{padding:4px 0 12px}
252
+ .vsync-rowTitle{white-space:normal}
253
+ .vsync-card{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:12px;align-items:start}
254
+ .vsync-cardBody{display:contents}
255
+ .vsync-card .vsync-cover{width:72px;height:96px;grid-column:1;grid-row:1 / span 3}
256
+ .vsync-cardBody>*{grid-column:2}
257
+ .vsync-cardBody>.vsync-cardFoot,.vsync-cardBody>.vsync-details{grid-column:1 / -1}
258
+ .vsync-cardFoot{flex-direction:column;align-items:stretch;gap:8px}
259
+ .vsync-cardFoot .vsync-actions{width:100%;flex-wrap:wrap}
260
+ .vsync-cardFoot .vsync-actions .vsync-btn{flex:1 1 40%;height:36px}
261
+ .vsync-cardFoot .vsync-actions .vsync-primary{flex:1 1 100%;order:-1}
262
+ .vsync-bar .vsync-barTitle span{display:none}
263
+ .vsync-sideTabs{padding-inline:12px}
264
+ }
265
+ .vsync-sort{margin:0 0 8px}
266
+ .vsync-chip[aria-pressed=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l2)}
267
+ .vsync-more{align-self:center;margin:4px auto 12px}
268
+ @media (width<=640px){.vsync-more{width:100%;height:40px}}
269
+ .vsync-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin:4px 0 12px}
270
+ .vsync-filter{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--dsw-alias-label-secondary)}
271
+ .vsync-filter .vsync-field{flex:none;height:32px;padding:0 10px;font-size:13px;border-radius:10px}
272
+ .vsync-filter select.vsync-field{min-width:96px}
273
+ .vsync-year{width:92px}
274
+ .vsync-pick{flex:none;height:32px;padding:0 8px;font-size:13px;border-radius:10px;max-width:180px}
275
+ .vsync-book .vsync-cardFoot{flex-wrap:wrap;gap:8px}
276
+ .vsync-book .vsync-actions{flex-wrap:wrap;justify-content:flex-end}
277
+ .vsync-book a.vsync-btn{text-decoration:none}
278
+ .vsync-shelf{margin-top:24px}
279
+ @media (width<=767px){.vsync-filter{flex:1 1 40%}.vsync-filter .vsync-field,.vsync-year{width:100%}.vsync-book .vsync-actions{justify-content:flex-start}}
280
+ @media (pointer:coarse){.vsync-filter .vsync-field,.vsync-pick{font-size:16px}}
281
+ /* Covers fill the card's height, cropped from the top; on phones they stay small and fixed (below). */
282
+ @media (width>640px){
283
+ .vsync-card{align-items:stretch}
284
+ .vsync-card>.vsync-cover{height:auto;min-height:112px;align-self:stretch;object-position:top}
285
+ .vsync-card>.vsync-coverSmall{min-height:54px}
286
+ }
287
+ .vsync-filterToggle{display:none}
288
+ .vsync-ask svg{flex:none}
289
+ @media (width<=640px){
290
+ .vsync-card .vsync-cover{width:64px;height:86px;align-self:start}
291
+ .vsync-card .vsync-coverSmall{width:48px;height:64px}
292
+ .vsync-card:has(>.vsync-coverSmall){grid-template-columns:48px minmax(0,1fr)}
293
+ .vsync-card{grid-template-columns:64px minmax(0,1fr);row-gap:2px}
294
+ .vsync-card .vsync-cardBody>.vsync-tags,.vsync-card .vsync-cardBody>.vsync-blurb{display:none}
295
+ .vsync-card .vsync-rowMeta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
296
+ .vsync-card .vsync-rowMeta>span{display:inline}
297
+ .vsync-card .vsync-cardFoot{flex-direction:row;flex-wrap:wrap;align-items:center}
298
+ .vsync-card .vsync-cardFoot .vsync-actions{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:6px}
299
+ .vsync-card .vsync-cardFoot .vsync-actions>*{flex:1 1 auto}
300
+ /* Ask is an icon in the card's corner, so the row under the title keeps the download and its format together in any language. */
301
+ .vsync-card{position:relative}
302
+ .vsync-card .vsync-cardHead{padding-right:40px}
303
+ .vsync-card .vsync-cardFoot .vsync-actions .vsync-ask{position:absolute;top:6px;right:6px;width:40px;padding:0;border:0;box-shadow:none;background:none}
304
+ .vsync-askLabel{display:none}
305
+ .vsync-card .vsync-cardFoot .vsync-actions .vsync-pick{flex:0 1 84px;min-width:64px;max-width:none}
306
+ /* A book has one action (download in a format): it sits beside the cover, under the title and the info line, so the
307
+ small cover leaves no gap. A show's several actions take the full width under the cover. */
308
+ .vsync-book .vsync-cardBody>.vsync-cardFoot{grid-column:2;margin-top:6px}
309
+ .vsync-card:not(.vsync-book) .vsync-cardFoot{display:contents}
310
+ .vsync-card:not(.vsync-book) .vsync-detailsToggle{grid-column:2;justify-self:start}
311
+ .vsync-card:not(.vsync-book) .vsync-cardFoot>.vsync-actions{grid-column:1 / -1;margin-top:8px}
312
+ .vsync-filterToggle{display:inline-flex;margin:0 0 8px}
313
+ .vsync-filterBox[data-open=false] .vsync-filters{display:none}
314
+ .vsync-filterBox[data-open=true] .vsync-filters{padding:10px;border-radius:12px;box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3)}
315
+ }
316
+ /* Touch screens: every control at least 40 px tall. */
317
+ @media (pointer:coarse){
318
+ .vsync-btn,.vsync-card .vsync-cardFoot .vsync-actions .vsync-btn{min-height:40px;height:auto}
319
+ .vsync-chip,.vsync-tab,.vsync-seg{min-height:40px;height:40px}
320
+ .vsync-filter .vsync-field,.vsync-pick{height:40px}
321
+ .vsync-metaButton{min-height:40px}
322
+ }
323
+ /* The Watching tab: the Continue card, ratings, picks and room cards over the kit's Surface; colours come from DSH and the kit. */
324
+ .vsync-pageTabs{max-width:400px;margin:0 0 20px}
325
+ .vsync-tabCount{margin-left:6px}
326
+ .vsync-watching .vsync-section h2{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:22px}
327
+ .vsync-sectionHeadInline{justify-content:flex-start;flex-wrap:wrap;gap:4px 10px}
328
+ .vsync-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
329
+ .vsync-cards p{margin:0}
330
+ .vsync-roomCard{padding:10px 12px}
331
+ .vsync-cc{display:flex;gap:20px;padding:16px;margin-bottom:28px}
332
+ .vsync-ccPoster{flex:none;width:132px;height:176px;border-radius:10px;object-fit:cover}
333
+ .vsync-ccPosterEmpty{display:grid;place-items:center;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-tertiary)}
334
+ .vsync-ccBody{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
335
+ .vsync-ccBody>p{margin:0}
336
+ .vsync-ccLive{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--dsw-alias-label-secondary)}
337
+ .vsync-ccTitle{margin:0;font-size:20px;font-weight:600;line-height:28px;overflow-wrap:anywhere}
338
+ .vsync-ccMeta{font-size:13px;color:var(--dsw-alias-label-tertiary)}
339
+ .vsync-ccRecap{padding:10px 12px}
340
+ .vsync-ccRecap p{margin:0}
341
+ .vsync-ccRecapHead{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--dsw-alias-label-tertiary)}
342
+ .vsync-ccRecapText{margin-top:4px!important;line-height:22px}
343
+ .vsync-ccActions,.vsync-pickActions,.vsync-rateAnswers{display:flex;flex-wrap:wrap;gap:8px}
344
+ .vsync-rate{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px}
345
+ .vsync-rateHead{display:flex;align-items:center;gap:12px;min-width:0}
346
+ .vsync-rateText{min-width:0}
347
+ .vsync-pickGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
348
+ .vsync-pickCard{display:flex;gap:12px;padding:12px}
349
+ .vsync-pickCover{flex:none;width:76px;height:114px;border-radius:8px;object-fit:cover}
350
+ .vsync-pickBody{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
351
+ .vsync-pickOpen{flex:none;padding:0;border:0;background:none;cursor:pointer;border-radius:8px}
352
+ .vsync-pickTitle{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;line-height:20px;text-align:start;overflow-wrap:anywhere;cursor:pointer}
353
+ @media (hover:hover){.vsync-pickTitle:hover{text-decoration:underline}}
354
+ .vsync-pickCard{transition:transform .15s ease}.vsync-pickCard:active{transform:scale(.99)}
355
+ @media (prefers-reduced-motion:reduce){.vsync-pickCard{transition:none}}
356
+ .vsync-pickWhy{display:flex;gap:6px;font-size:13px;line-height:19px;color:var(--dsw-alias-label-secondary)}
357
+ .vsync-pickWhy .uk-icon{margin-top:2px}
358
+ .vsync-pickActions{margin-top:auto;padding-top:6px}
359
+ @media (width<=640px){.vsync-cc{flex-direction:column;gap:14px}.vsync-ccPoster{width:112px;height:150px}.vsync-ccStrip .uk-segmentsLabelled{flex-wrap:wrap;row-gap:4px}.vsync-ccStrip .uk-segments{flex-basis:100%}}
360
+ /* Interface chrome is not selectable and pictures don't drag; titles, recaps and reasons stay selectable. */
361
+ .vsync-pageTabs,.vsync-ccActions,.vsync-rateAnswers,.vsync-pickActions,.vsync-ccLive,.vsync-sectionMeta,.vsync-sectionHead h2,.vsync-actions,.vsync-tabCount,.vsync-ccStrip,.vsync-rateHead .uk-tile{user-select:none;-webkit-user-select:none}
362
+ .vsync-page img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
363
+ .vsync-ccActions .uk-touch,.vsync-pickActions .uk-touch,.vsync-rateAnswers .uk-touch{font-size:13px}