/* Row 647 (J4): Spotify-huone shell in Adele's light look (no dark mode). Loaded after style.css; every rule is
   scoped to #spotify-room-root, except the first one. Covers keep a 1 px border and 8 px radius and are never cropped,
   tinted or overlaid. */
/* Review 1 #1: renderer.js sets main.spotify-room-mode while the room is shown; the shell then gets the whole window
   instead of the 640 px app column (view.cjs fits the columns to the width the shell really has). */
main.spotify-room-mode { max-width:none; height:100vh; height:100dvh; min-height:0; padding-top:10px; padding-bottom:10px; overflow:hidden; }
/* Addendum 5 (Safari/browser): the app shell is exactly the viewport. The page itself never scrolls; the library list,
   the main content and the Nyt soi panel scroll INSIDE their own panel, the top bar and the player bar stay put, and
   the library toolbar (head, filters, search, sort, view) stays at the top of the library panel. */
#spotify-room-root .sr-shell { height:100%; max-height:100%; }
#spotify-room-root .sr-columns { overflow:hidden; }
#spotify-room-root .sr-library:has(> .sr-lib:not([hidden])) { display:flex; flex-direction:column; overflow:hidden; }
#spotify-room-root .sr-library > .sr-lib:not([hidden]) { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
#spotify-room-root .sr-library > .sr-lib:not([hidden]) > .sr-lib-list { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#spotify-room-root .sr-main, #spotify-room-root .sr-right { overflow-y:auto; overscroll-behavior:contain; }
#spotify-room-root { flex:1 1 auto; min-height:0; overflow:hidden; gap:0; color:var(--u-ink); font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
#spotify-room-root .sr-shell { --sr-left:260px; --sr-right:320px; display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; flex:1; min-height:0; gap:12px; background:var(--u-paper); position:relative; }
#spotify-room-root .sr-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
#spotify-room-root .sr-icon .fill { fill:currentColor; stroke:none; }
#spotify-room-root button { border:1px solid var(--u-line); border-radius:10px; background:var(--u-card); color:var(--u-ink); display:inline-flex; align-items:center; gap:6px; }
#spotify-room-root button:hover:not(:disabled) { border-color:var(--u-mid); color:var(--u-accent); }
#spotify-room-root button:disabled { opacity:.45; cursor:default; }
#spotify-room-root button[aria-pressed="true"] { color:var(--u-accent); border-color:var(--u-mid); background:var(--u-wash); }
#spotify-room-root :focus-visible { outline:2px solid var(--u-focus); outline-offset:2px; }
#spotify-room-root [hidden] { display:none !important; }
#spotify-room-root h2 { font-size:16px; margin:0 0 10px; }
#spotify-room-root h3 { font-size:16px; margin:0; }
#spotify-room-root p { margin:0; }

/* Top bar */
#spotify-room-root .sr-top { display:flex; align-items:center; gap:12px; margin:0; }
#spotify-room-root .sr-nav, #spotify-room-root .sr-top-right { display:flex; gap:6px; align-items:center; }
#spotify-room-root .sr-heading h1 { font-size:20px; margin:0; white-space:nowrap; }
#spotify-room-root .sr-search { flex:1 1 220px; min-width:160px; max-width:min(720px, 100%); display:flex; align-items:center; gap:8px; padding:0 12px; border:1px solid var(--u-line); border-radius:999px; background:var(--u-card); color:var(--u-muted); }
#spotify-room-root .sr-search input { flex:1; min-width:0; border:0; background:transparent; padding:8px 0; outline:none; }
#spotify-room-root .sr-search:focus-within { border-color:var(--u-mid); box-shadow:0 0 0 2px #8fc4ff; }
#spotify-room-root .sr-top-right { margin-left:auto; }
#spotify-room-root .sr-hifi, #spotify-room-root [data-listen-quality] { padding:2px 8px; border-radius:999px; background:var(--u-goodwash); color:var(--u-good); font-size:12px; font-weight:700; }

/* Three columns with draggable borders */
#spotify-room-root .sr-columns { display:grid; grid-template-columns:var(--sr-left) 6px minmax(360px,1fr) 6px var(--sr-right); min-height:0; }
#spotify-room-root .sr-col { background:var(--u-card); border:1px solid var(--u-line); border-radius:16px; box-shadow:0 8px 25px #1b263510; padding:16px; min-width:0; min-height:0; overflow-y:auto; }
#spotify-room-root .sr-resize { cursor:col-resize; border-radius:3px; touch-action:none; }
#spotify-room-root .sr-resize:hover, #spotify-room-root .sr-resize:focus-visible { background:var(--u-wash); }
#spotify-room-root .sr-library section { display:flex; flex-direction:column; gap:8px; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--u-line); }
#spotify-room-root .sr-sub, #spotify-room-root [data-artist], #spotify-room-root [data-owner], #spotify-room-root [data-context], #spotify-room-root [data-time], #spotify-room-root [data-mini-artist], #spotify-room-root .sr-note, #spotify-room-root .sr-attr { color:var(--u-muted); font-size:14px; }
#spotify-room-root .sr-home .sr-sub { margin-bottom:14px; }
#spotify-room-root [data-liked-items] { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; }
#spotify-room-root [data-liked-items] button { width:100%; border:0; border-bottom:1px solid var(--u-line); border-radius:8px; padding:8px; text-align:left; }
#spotify-room-root [data-liked-items] button:hover { background:var(--u-wash); }

/* Right panel: Nyt soi (default), Adele chat or Jono */
#spotify-room-root .sr-right { display:flex; flex-direction:column; gap:12px; }
#spotify-room-root .sr-chat, #spotify-room-root .sr-queue { display:none; }
#spotify-room-root .sr-shell[data-panel="chat"] .sr-right .sr-now, #spotify-room-root .sr-shell[data-panel="queue"] .sr-right .sr-now { display:none; }
#spotify-room-root .sr-shell[data-panel="chat"] .sr-chat { display:flex; flex-direction:column; flex:1; min-height:0; }
#spotify-room-root .sr-shell[data-panel="queue"] .sr-queue { display:block; }
#spotify-room-root [data-chat-log] { flex:1 1 auto; min-height:120px; max-height:none; }
#spotify-room-root .sr-now-head { display:flex; align-items:center; justify-content:space-between; }
#spotify-room-root [data-control="now-close"] { display:none; }
#spotify-room-root .sr-cover { width:100%; height:auto; aspect-ratio:1; border:1px solid var(--u-line); border-radius:8px; object-fit:contain; display:block; }
#spotify-room-root .sr-now-text { display:flex; flex-direction:column; gap:4px; margin-top:12px; min-width:0; }
#spotify-room-root .sr-title-row { display:flex; align-items:center; gap:8px; }
#spotify-room-root .sr-title-row h3 { flex:1; font-size:20px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root [data-control="like"] { border:0; padding:4px; }
#spotify-room-root [data-control="like"][aria-pressed="true"] { color:var(--u-accent); background:transparent; }
#spotify-room-root .sr-attr { margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
#spotify-room-root a { color:var(--u-accent); }
#spotify-room-root a:hover { color:var(--u-accent); }
#spotify-room-root .sr-closed { display:flex; flex-direction:column; gap:8px; padding:16px; border:1px dashed var(--u-line); border-radius:11px; margin-bottom:12px; }
#spotify-room-root .sr-primary, #spotify-room-root .sr-play { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }
#spotify-room-root .sr-primary:hover:not(:disabled), #spotify-room-root .sr-play:hover:not(:disabled) { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }

/* Player bar */
#spotify-room-root .sr-player { display:grid; grid-template-columns:minmax(180px,1fr) minmax(320px,1.4fr) minmax(180px,1fr); align-items:center; gap:16px; background:var(--u-card); border:1px solid var(--u-line); border-radius:16px; box-shadow:0 8px 25px #1b263510; padding:10px 16px; }
#spotify-room-root .sr-shell[data-room="closed"] .sr-player { background:var(--u-paper); }
#spotify-room-root .sr-player-now { display:flex; align-items:center; gap:10px; min-width:0; cursor:pointer; }
#spotify-room-root .sr-player-now img { border:1px solid var(--u-line); border-radius:8px; object-fit:contain; }
#spotify-room-root .sr-player-now div { display:flex; flex-direction:column; min-width:0; }
#spotify-room-root .sr-player-now strong, #spotify-room-root [data-mini-artist] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-player-center { display:flex; flex-direction:column; align-items:center; gap:6px; }
#spotify-room-root .sr-transport { display:flex; gap:8px; align-items:center; }
#spotify-room-root .sr-transport button { border:0; background:transparent; padding:6px; }
#spotify-room-root .sr-transport .sr-play { width:40px; height:40px; justify-content:center; border-radius:999px; background:var(--u-button); color:var(--u-white); }
#spotify-room-root .sr-progress { display:flex; align-items:center; gap:8px; width:100%; font-size:12px; color:var(--u-muted); }
#spotify-room-root .sr-progress progress { flex:1; height:6px; appearance:none; -webkit-appearance:none; border:0; border-radius:999px; background:var(--u-wash); overflow:hidden; }
#spotify-room-root .sr-progress progress::-webkit-progress-bar { background:var(--u-wash); border-radius:999px; }
#spotify-room-root .sr-progress progress::-webkit-progress-value { background:var(--u-button); border-radius:999px; }
#spotify-room-root .sr-progress progress[data-seekable="1"] { cursor:pointer; }
#spotify-room-root .sr-player-right { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; min-width:0; }
#spotify-room-root .sr-player-right > button { border:0; background:transparent; padding:6px; }
/* Row 652 (Juha 24.11): the visible Kuuntele button (accent colour); while listening it shows the route and stops. */
#spotify-room-root .sr-player-right > .sr-listen { display:inline-flex; align-items:center; gap:6px; border:0; border-radius:999px; background:var(--u-button); color:var(--u-white); padding:6px 12px; font-weight:700; white-space:nowrap; }
#spotify-room-root .sr-player-right > .sr-listen[hidden] { display:none; }
#spotify-room-root .sr-player-right > .sr-listen[aria-pressed="true"] { background:var(--u-wash); color:var(--u-accent); }
#spotify-room-root [data-local-volume] { width:clamp(64px, 8vw, 100px); min-width:0; accent-color:var(--u-button); }
#spotify-room-root .sr-badge { padding:2px 8px; border-radius:999px; background:var(--u-wash); color:var(--u-accent); font-size:12px; font-weight:700; white-space:nowrap; }

/* Menus (⋯ and device) */
#spotify-room-root .sr-menu { position:absolute; right:16px; bottom:88px; z-index:5; width:300px; display:flex; flex-direction:column; gap:10px; background:var(--u-card); border:1px solid var(--u-line); border-radius:16px; box-shadow:0 8px 25px #1b263510; padding:14px; }
#spotify-room-root .sr-menu label { display:flex; flex-direction:column; gap:6px; font-size:14px; }
#spotify-room-root .sr-menu input[type="range"] { accent-color:var(--u-button); }
#spotify-room-root .sr-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
#spotify-room-root .sr-danger { color:var(--u-alert); border-color:var(--u-alertfill); }
#spotify-room-root .sr-danger:hover:not(:disabled) { color:var(--u-white); background:var(--u-alertfill); border-color:var(--u-alertfill); }
#spotify-room-root .sr-confirm { display:flex; flex-direction:column; gap:8px; padding:10px; border:1px solid var(--u-alertfill); border-radius:11px; }
#spotify-room-root .sr-confirm p { color:var(--u-alert); }

/* Narrow tabs (hidden on a wide window) */
#spotify-room-root .sr-tabs { display:none; }

/* Full screen Nyt soi (⛶ on a wide window, the mini player on a narrow one). Review 1 #4: the panel covers the top
   bar and the columns only; the player bar stays in its own grid row above the panel (z-index 7) with every control,
   and the menus open above both. */
#spotify-room-root .sr-shell[data-full="1"] { grid-template-rows:minmax(0,1fr) auto; }
#spotify-room-root .sr-shell[data-full="1"] > .sr-top, #spotify-room-root .sr-shell[data-full="1"] > .sr-tabs { display:none; }
#spotify-room-root .sr-shell[data-full="1"] .sr-columns { grid-row:1; }
#spotify-room-root .sr-shell[data-full="1"] .sr-player { grid-row:2; position:relative; z-index:7; }
#spotify-room-root .sr-shell[data-full="1"] .sr-menu { z-index:8; }
#spotify-room-root .sr-shell[data-full="1"] .sr-now { position:absolute; top:0; left:0; right:0; bottom:var(--sr-player-h, 120px); z-index:6; background:var(--u-paper); padding:24px; overflow-y:auto; display:flex !important; flex-direction:column; align-items:center; }
#spotify-room-root .sr-shell[data-full="1"] .sr-now-body { width:min(520px,100%); }
#spotify-room-root .sr-shell[data-full="1"] .sr-now-head { width:min(520px,100%); }
#spotify-room-root .sr-shell[data-full="1"] [data-control="now-close"] { display:inline-flex; }

/* Narrow layout (< 1000 px): one column chosen by the tab bar, compact player bar */
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-columns { display:block; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-resize { display:none; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-col { display:none; height:100%; }
#spotify-room-root .sr-shell[data-layout="narrow"][data-tab="library"] .sr-library,
#spotify-room-root .sr-shell[data-layout="narrow"][data-tab="main"] .sr-main,
#spotify-room-root .sr-shell[data-layout="narrow"][data-tab="adele"] .sr-right,
#spotify-room-root .sr-shell[data-layout="narrow"][data-tab="queue"] .sr-right { display:flex; flex-direction:column; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-right .sr-now { display:none; }
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] .sr-right { display:block; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-heading, #spotify-room-root .sr-shell[data-layout="narrow"] .sr-nav { display:none; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-player { grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:8px 10px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-player-center { flex-direction:row; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-progress, #spotify-room-root .sr-shell[data-layout="narrow"] [data-control="shuffle"], #spotify-room-root .sr-shell[data-layout="narrow"] [data-control="repeat"], #spotify-room-root .sr-shell[data-layout="narrow"] [data-action="previous"] { display:none; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-player-right { grid-column:1 / -1; justify-content:space-between; }
#spotify-room-root .sr-shell[data-layout="narrow"] [data-local-volume], #spotify-room-root .sr-shell[data-layout="narrow"] [data-control="fullscreen"] { display:none; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-menu { left:8px; right:8px; width:auto; bottom:140px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-tabs { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-tabs button { justify-content:center; padding:8px 4px; }

/* Review 1 #4: full screen on a narrow window shows the whole transport (previous, seek, shuffle, repeat) again. */
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] .sr-player { grid-template-columns:minmax(0,1fr); }
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] .sr-player-now { display:none; }
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] .sr-player-center { flex-direction:column; }
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] .sr-progress { display:flex; }
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] [data-control="shuffle"],
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] [data-control="repeat"],
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] [data-action="previous"] { display:inline-flex; }
#spotify-room-root .sr-shell[data-layout="narrow"][data-full="1"] .sr-menu { bottom:var(--sr-player-h, 160px); }
/* Row 651 (J5a): Oma kirjasto, album/playlist/Tykätyt views, context menu. Light only; #2e86ed accent. */
#spotify-room-root .sr-lib { display:flex; flex-direction:column; gap:10px; border:0; padding:0; margin:0; }
#spotify-room-root .sr-lib[hidden], #spotify-room-root [data-lib-legacy][hidden], #spotify-room-root .sr-browse[hidden], #spotify-room-root .sr-ctx-menu[hidden], #spotify-room-root .sr-lib-confirm[hidden] { display:none; }
#spotify-room-root .sr-lib-head { display:flex; align-items:center; gap:6px; }
#spotify-room-root .sr-lib-head h2 { display:flex; align-items:center; gap:8px; flex:1; margin:0; font-size:16px; }
#spotify-room-root .sr-lib-head button, #spotify-room-root .sr-lib-filters button { border:1px solid var(--u-line); background:var(--u-card); border-radius:999px; padding:4px 10px; font-size:14px; }
#spotify-room-root .sr-lib-filters { display:flex; flex-wrap:wrap; gap:6px; }
#spotify-room-root .sr-lib-filters button { white-space:nowrap; }
#spotify-room-root .sr-lib-filters button[aria-pressed="true"], #spotify-room-root .sr-col-modes button[aria-pressed="true"] { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }
/* Row 655: the search takes its own row so its placeholder is never cut; sort and view share the next row. */
#spotify-room-root .sr-lib-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px; }
#spotify-room-root .sr-lib-tools [data-lib-search] { grid-column:1 / -1; text-overflow:clip; }
#spotify-room-root .sr-lib-tools select { text-overflow:ellipsis; }
#spotify-room-root .sr-lib-tools input, #spotify-room-root .sr-lib-tools select, #spotify-room-root .sr-lib-create input { min-width:0; border:1px solid var(--u-line); border-radius:10px; padding:6px 8px; background:var(--u-card); font-size:14px; }
#spotify-room-root .sr-lib-create { display:flex; gap:6px; }
#spotify-room-root .sr-lib-create[hidden] { display:none; }
#spotify-room-root .sr-lib-create input { flex:1; }
#spotify-room-root .sr-primary { background:var(--u-button); color:var(--u-white); border:0; border-radius:999px; padding:6px 12px; }
#spotify-room-root .sr-lib-note { color:var(--u-muted); font-size:14px; margin:4px 0; }
#spotify-room-root .sr-lib-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
#spotify-room-root .sr-lib-row { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; padding:6px; border-radius:10px; cursor:pointer; position:relative; }
#spotify-room-root .sr-lib-row:hover, #spotify-room-root .sr-lib-row:focus-visible { background:var(--u-wash); }
#spotify-room-root .sr-lib-row.sr-playing .sr-lib-name { color:var(--u-accent); }
#spotify-room-root .sr-lib-cover { width:48px; height:48px; border-radius:8px; object-fit:cover; background:var(--u-wash); display:inline-flex; align-items:center; justify-content:center; }
#spotify-room-root .sr-round { border-radius:50%; }
#spotify-room-root .sr-liked-cover { background:linear-gradient(135deg,var(--u-button),var(--u-button)); color:var(--u-white); }
#spotify-room-root .sr-lib-play { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:32px; height:32px; border-radius:50%; border:0; background:var(--u-button); color:var(--u-white); opacity:0; }
#spotify-room-root .sr-lib-row:hover .sr-lib-play, #spotify-room-root .sr-lib-play:focus-visible { opacity:1; }
#spotify-room-root .sr-lib-text { display:flex; flex-direction:column; min-width:0; }
#spotify-room-root .sr-lib-name, #spotify-room-root .sr-lib-sub, #spotify-room-root .sr-track-name, #spotify-room-root .sr-track-artist, #spotify-room-root .sr-track-album { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-lib-sub { color:var(--u-muted); font-size:12px; }
#spotify-room-root .sr-row-more { border:0; background:transparent; opacity:.55; }
#spotify-room-root .sr-lib-list[data-mode="compact"] .sr-lib-row { grid-template-columns:minmax(0,1fr) auto; padding:4px 6px; }
#spotify-room-root .sr-lib-list[data-mode="compact"] .sr-lib-cover, #spotify-room-root .sr-lib-list[data-mode="compact"] .sr-lib-play { display:none; }
#spotify-room-root .sr-lib-list[data-mode="compact"] .sr-lib-text { flex-direction:row; gap:6px; }
#spotify-room-root .sr-lib-list[data-mode="grid"] { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
#spotify-room-root .sr-lib-list[data-mode="grid"] .sr-lib-row { grid-template-columns:1fr; padding:10px; background:var(--u-card); box-shadow:0 4px 14px #1b263510; border-radius:16px; }
#spotify-room-root .sr-lib-list[data-mode="grid"] .sr-lib-cover { width:100%; height:auto; aspect-ratio:1; }
#spotify-room-root .sr-lib-list[data-mode="grid"] .sr-lib-play { left:auto; right:18px; top:auto; bottom:64px; transform:none; }
#spotify-room-root .sr-lib-list[data-mode="grid"] .sr-row-more { position:absolute; top:12px; right:12px; }
/* ⤢ the library takes the main column's place; ⇤ collapses it to a narrow cover column. */
/* Review 1 #2: the hidden main column and its left border leave the grid, so the template has three tracks. */
#spotify-room-root .sr-shell[data-layout="wide"][data-library="expanded"] .sr-columns { grid-template-columns:minmax(360px,1fr) 6px var(--sr-right); }
#spotify-room-root .sr-shell[data-layout="wide"][data-library="expanded"] .sr-main, #spotify-room-root .sr-shell[data-layout="wide"][data-library="expanded"] [data-resize="left"] { display:none; }
#spotify-room-root .sr-shell[data-layout="wide"][data-library="collapsed"] .sr-columns { grid-template-columns:84px 6px minmax(360px,1fr) 6px var(--sr-right); }
#spotify-room-root .sr-shell[data-library="collapsed"] .sr-lib-head h2 span, #spotify-room-root .sr-shell[data-library="collapsed"] .sr-lib-filters, #spotify-room-root .sr-shell[data-library="collapsed"] .sr-lib-tools,
#spotify-room-root .sr-shell[data-library="collapsed"] .sr-lib-text, #spotify-room-root .sr-shell[data-library="collapsed"] .sr-row-more, #spotify-room-root .sr-shell[data-library="collapsed"] [data-lib-create], #spotify-room-root .sr-shell[data-library="collapsed"] [data-lib-expand] { display:none; }
#spotify-room-root .sr-shell[data-library="collapsed"] .sr-lib-head { flex-direction:column; }
#spotify-room-root .sr-shell[data-library="collapsed"] .sr-lib-row { grid-template-columns:48px; }
/* Album / playlist / Tykätyt / podcast / artist view */
#spotify-room-root .sr-collection { display:flex; flex-direction:column; gap:12px; margin:-16px; padding:0 16px 16px; }
#spotify-room-root .sr-col-head { display:flex; align-items:flex-end; gap:20px; padding:24px 16px 16px; margin:0 -16px; background:linear-gradient(180deg,var(--u-wash),var(--u-card)); border-radius:16px 16px 0 0; }
#spotify-room-root .sr-col-cover { width:180px; height:180px; flex:none; border-radius:12px; object-fit:cover; box-shadow:0 8px 25px #1b263520; background:var(--u-wash); display:inline-flex; align-items:center; justify-content:center; }
#spotify-room-root .sr-col-cover.sr-liked-cover svg { width:64px; height:64px; }
#spotify-room-root .sr-col-titles { min-width:0; }
#spotify-room-root .sr-col-type { margin:0; font-size:12px; font-weight:600; color:var(--u-muted); }
#spotify-room-root .sr-col-name { margin:4px 0 8px; font-size:32px; line-height:1.1; overflow-wrap:anywhere; }
#spotify-room-root .sr-col-desc, #spotify-room-root .sr-col-facts, #spotify-room-root .sr-col-copy { margin:0; color:var(--u-muted); font-size:14px; }
#spotify-room-root .sr-col-actions { display:flex; align-items:center; gap:10px; }
#spotify-room-root .sr-col-actions button { border:0; background:transparent; font-size:20px; }
#spotify-room-root .sr-col-play { width:52px; height:52px; border-radius:50% !important; background:var(--u-button) !important; color:var(--u-white); box-shadow:0 6px 16px #2e86ed40; }
#spotify-room-root .sr-col-save[aria-pressed="true"] { color:var(--u-accent); }
#spotify-room-root .sr-col-modes { margin-left:auto; display:flex; gap:4px; }
#spotify-room-root .sr-col-modes button { font-size:12px; border:1px solid var(--u-line); border-radius:999px; padding:3px 10px; }
#spotify-room-root .sr-tracks { list-style:none; margin:0; padding:0; }
#spotify-room-root .sr-track { display:grid; grid-template-columns:32px minmax(0,2fr) minmax(0,1.3fr) 90px 52px 28px; align-items:center; gap:10px; padding:6px 8px; border-radius:8px; font-size:14px; position:relative; }
#spotify-room-root .sr-collection[data-kind="album"] .sr-track, #spotify-room-root .sr-collection[data-kind="show"] .sr-track { grid-template-columns:32px minmax(0,1fr) 52px 28px; }
#spotify-room-root .sr-collection[data-kind="artist"] .sr-track { grid-template-columns:32px minmax(0,2fr) minmax(0,1.3fr) 52px 28px; }
/* Row 655 addendum 6: a single click on a row plays it; the pressed row shows its starting note over the row end. */
#spotify-room-root .sr-collection [data-col="row"] { cursor:pointer; }
#spotify-room-root .sr-episode[data-starting] { position:relative; }
#spotify-room-root [data-starting] .sr-starting { position:absolute; right:44px; top:50%; transform:translateY(-50%); padding:2px 8px; border-radius:999px; background:var(--u-wash); color:var(--u-ink); font-size:12px; font-weight:600; pointer-events:none; }
#spotify-room-root .sr-track:not(.sr-track-head):hover { background:var(--u-wash); }
#spotify-room-root .sr-track-head { color:var(--u-muted); font-size:12px; border-bottom:1px solid var(--u-line); border-radius:0; }
#spotify-room-root .sr-track-no, #spotify-room-root .sr-track-time, #spotify-room-root .sr-track-added { color:var(--u-muted); font-size:14px; }
#spotify-room-root .sr-track-time { text-align:right; }
#spotify-room-root .sr-track-play { position:absolute; left:6px; width:28px; height:28px; border-radius:50%; border:0; background:var(--u-button); color:var(--u-white); opacity:0; }
#spotify-room-root .sr-track:hover .sr-track-play, #spotify-room-root .sr-track-play:focus-visible { opacity:1; }
#spotify-room-root .sr-track-title { display:flex; flex-direction:column; min-width:0; }
#spotify-room-root .sr-track-artist { color:var(--u-muted); font-size:14px; }
#spotify-room-root .sr-track.sr-playing .sr-track-name { color:var(--u-accent); }
#spotify-room-root .sr-unplayable { opacity:.5; }
#spotify-room-root .sr-link { border:0; background:transparent; padding:0; color:inherit; font:inherit; cursor:pointer; }
#spotify-room-root .sr-link:hover { text-decoration:underline; }
#spotify-room-root .sr-explicit { display:inline-block; font-size:12px; padding:0 4px; border-radius:3px; background:var(--u-line); color:var(--u-muted); }
#spotify-room-root .sr-collection[data-mode="compact"] .sr-track { padding:2px 8px; }
#spotify-room-root .sr-collection[data-mode="compact"] .sr-track-title { flex-direction:row; gap:8px; }
#spotify-room-root .sr-col-more { align-self:center; border:1px solid var(--u-line); background:var(--u-card); border-radius:999px; padding:6px 16px; }
#spotify-room-root .sr-col-sub { margin:8px 0 0; font-size:20px; }
#spotify-room-root .sr-col-albums { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
#spotify-room-root .sr-col-albums button { width:100%; display:flex; flex-direction:column; gap:4px; text-align:left; border:0; background:var(--u-card); border-radius:16px; padding:10px; box-shadow:0 4px 14px #1b263510; }
#spotify-room-root .sr-col-albums img, #spotify-room-root .sr-col-albums .sr-cover-blank { width:100%; aspect-ratio:1; border-radius:8px; object-fit:cover; background:var(--u-wash); }
#spotify-room-root .sr-ctx-menu { position:fixed; z-index:30; min-width:200px; background:var(--u-card); border:1px solid var(--u-line); border-radius:12px; box-shadow:0 12px 30px #1b263526; padding:6px; }
#spotify-room-root .sr-ctx-menu ul { list-style:none; margin:0; padding:0; }
#spotify-room-root .sr-ctx-menu button { width:100%; text-align:left; border:0; background:transparent; padding:8px 10px; border-radius:8px; }
#spotify-room-root .sr-ctx-menu button:hover, #spotify-room-root .sr-ctx-menu button:focus-visible { background:var(--u-wash); }
#spotify-room-root .sr-lib-confirm { position:absolute; z-index:31; top:72px; left:50%; transform:translateX(-50%); width:min(460px, calc(100% - 32px)); box-sizing:border-box; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 12px; border-radius:12px; background:var(--u-card); border:1px solid var(--u-line); box-shadow:0 12px 30px #1b263526; }
#spotify-room-root .sr-lib-confirm p { flex:1; margin:0; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-col-head { flex-direction:column; align-items:flex-start; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-track { grid-template-columns:28px minmax(0,1fr) 48px 28px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-track-album, #spotify-room-root .sr-shell[data-layout="narrow"] .sr-track-added { display:none; }

/* Row 652 (J5b): the search results page and the queue. Cards white with 16 px corners; chips like Adele's tabs. */
#spotify-room-root .sr-search-view[hidden] { display:none; }
#spotify-room-root .sr-search-view { display:flex; flex-direction:column; gap:16px; padding:4px 0 16px; }
#spotify-room-root .sr-search-head h2 { margin:0 0 8px; }
#spotify-room-root .sr-chips { display:flex; flex-wrap:wrap; gap:6px; }
#spotify-room-root .sr-chips button { border:1px solid var(--u-line); background:var(--u-card); border-radius:999px; padding:5px 12px; font-weight:600; }
#spotify-room-root .sr-chips button[aria-pressed="true"] { background:var(--u-button); border-color:var(--u-mid); color:var(--u-white); }
#spotify-room-root .sr-search-group h3, #spotify-room-root .sr-search-best h3, #spotify-room-root .sr-queue-part h3 { margin:0 0 8px; font-size:16px; }
#spotify-room-root .sr-best-card { position:relative; display:flex; flex-direction:column; gap:6px; max-width:320px; padding:16px; background:var(--u-card); border-radius:16px; box-shadow:0 1px 3px rgba(20,30,50,.08); cursor:pointer; }
#spotify-room-root .sr-best-cover { width:96px; height:96px; border-radius:8px; object-fit:cover; background:var(--u-wash); }
#spotify-room-root .sr-best-card.sr-round .sr-best-cover { border-radius:50%; }
#spotify-room-root .sr-search-rows, #spotify-room-root .sr-queue-rows { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
#spotify-room-root .sr-search-row, #spotify-room-root .sr-queue-row { display:grid; grid-template-columns:40px minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:4px 8px; border-radius:8px; }
#spotify-room-root .sr-queue-row { grid-template-columns:40px minmax(0,1fr); }
#spotify-room-root .sr-queue-row.sr-queue-removable { grid-template-columns:40px minmax(0,1fr) auto; }
#spotify-room-root .sr-queue-remove { background:none; border:0; color:inherit; opacity:.55; cursor:pointer; padding:4px 8px; border-radius:6px; font-size:14px; }
#spotify-room-root .sr-queue-remove:hover, #spotify-room-root .sr-queue-remove:focus-visible { opacity:1; background:rgba(255,255,255,.1); }
#spotify-room-root .sr-search-row { grid-template-columns:40px minmax(0,1fr) auto auto auto; }
#spotify-room-root .sr-best-card .sr-row-more { position:absolute; top:12px; right:12px; }
#spotify-room-root .sr-search-row:hover { background:var(--u-wash); cursor:pointer; }
#spotify-room-root .sr-thumb { width:40px; height:40px; border-radius:4px; object-fit:cover; background:var(--u-wash); display:block; }
#spotify-room-root .sr-search-text { display:flex; flex-direction:column; min-width:0; }
#spotify-room-root .sr-search-text strong, #spotify-room-root .sr-search-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-search-text span, #spotify-room-root .sr-search-time, #spotify-room-root .sr-search-card span { color:var(--u-muted); font-size:12px; }
#spotify-room-root .sr-search-cards { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
#spotify-room-root .sr-search-card { position:relative; display:flex; flex-direction:column; gap:4px; padding:12px; background:var(--u-card); border-radius:16px; box-shadow:0 1px 3px rgba(20,30,50,.08); cursor:pointer; min-width:0; }
#spotify-room-root .sr-search-card strong, #spotify-room-root .sr-search-card span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-card-cover { width:100%; aspect-ratio:1; border-radius:8px; object-fit:cover; background:var(--u-wash); display:block; }
#spotify-room-root .sr-search-card.sr-round .sr-card-cover { border-radius:50%; }
#spotify-room-root .sr-search-play { border:0; background:var(--u-button); color:var(--u-white); border-radius:50%; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; padding:0; }
#spotify-room-root .sr-search-card .sr-search-play, #spotify-room-root .sr-best-card .sr-search-play { position:absolute; right:12px; bottom:12px; }
#spotify-room-root .sr-search-play[disabled] { background:var(--u-mid); }
#spotify-room-root .sr-queue-part { margin-bottom:14px; }
/* Row 653 (J8): Koti feed (filters, quick grid, card rows, Näytä kaikki grid), artist and podcast pages, and the
   "Tietoja artistista" card. Adele light colours (#f7f8fa, accent #2e86ed), .panel cards with a 16 px radius. */
#spotify-room-root .sr-home-feed { display:flex; flex-direction:column; gap:18px; }
#spotify-room-root .sr-quick { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-quick { grid-template-columns:repeat(2,minmax(0,1fr)); }
#spotify-room-root .sr-quick-item { position:relative; }
#spotify-room-root .sr-quick-open { width:100%; display:flex; align-items:center; gap:10px; border:0; background:var(--u-card); border-radius:16px; padding:0 40px 0 0; overflow:hidden; text-align:left; box-shadow:0 4px 14px #1b263510; }
#spotify-room-root .sr-quick-cover { width:56px; height:56px; flex:none; object-fit:cover; display:grid; place-items:center; }
#spotify-room-root .sr-quick-name { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-quick-play, #spotify-room-root .sr-card-play { position:absolute; border:0; border-radius:50%; width:32px; height:32px; display:grid; place-items:center; background:var(--u-button); color:var(--u-white); }
#spotify-room-root .sr-quick-play { right:8px; top:12px; }
#spotify-room-root .sr-home-row-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
#spotify-room-root .sr-home-row-head h3 { margin:0; font-size:20px; }
#spotify-room-root .sr-home-row-head .sr-link { color:var(--u-accent); font-weight:600; font-size:14px; }
#spotify-room-root .sr-card-row { list-style:none; margin:8px 0 0; padding:0 0 6px; display:grid; grid-auto-flow:column; grid-auto-columns:150px; gap:12px; overflow-x:auto; }
#spotify-room-root .sr-card-grid { list-style:none; margin:8px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
#spotify-room-root .sr-card { position:relative; }
#spotify-room-root .sr-card-open { width:100%; display:flex; flex-direction:column; gap:4px; text-align:left; border:0; background:var(--u-card); border-radius:16px; padding:10px; box-shadow:0 4px 14px #1b263510; }
#spotify-room-root .sr-card-cover { width:100%; aspect-ratio:1; height:auto; object-fit:cover; border-radius:10px; display:grid; place-items:center; }
#spotify-room-root .sr-card-name { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-card-sub { color:var(--u-muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#spotify-room-root .sr-card-play { right:18px; bottom:60px; }
#spotify-room-root .sr-card.sr-playing .sr-card-name, #spotify-room-root .sr-quick-item.sr-playing .sr-quick-name { color:var(--u-accent); }
#spotify-room-root .sr-artist-top .sr-tracks .sr-track { grid-template-columns:32px 40px minmax(0,1fr) 56px 32px; }
#spotify-room-root .sr-track-thumb { width:40px; height:40px; border-radius:6px; object-fit:cover; }
#spotify-room-root .sr-top-toggle { color:var(--u-accent); font-weight:600; margin:6px 0 0 8px; }
#spotify-room-root .sr-artist-albums { display:flex; flex-direction:column; gap:10px; }
#spotify-room-root .sr-episodes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
#spotify-room-root .sr-episode { display:grid; grid-template-columns:72px minmax(0,1fr) 36px 32px; gap:12px; align-items:center; background:var(--u-card); border-radius:16px; padding:10px; box-shadow:0 4px 14px #1b263510; }
#spotify-room-root .sr-episode.sr-playing .sr-ep-name { color:var(--u-accent); }
#spotify-room-root .sr-ep-cover { width:72px; height:72px; border-radius:10px; object-fit:cover; }
#spotify-room-root .sr-ep-text p { margin:0; }
#spotify-room-root .sr-ep-name { font-weight:700; }
#spotify-room-root .sr-ep-desc { color:var(--u-ink); font-size:14px; margin-top:2px !important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Row 653 review #1: the episode ▶ sits in its own grid cell (3rd column) and is always visible. */
#spotify-room-root .sr-ep-play { position:static; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; border:0; background:var(--u-button); color:var(--u-white); opacity:1; cursor:pointer; }
#spotify-room-root .sr-ep-play:focus-visible { outline:2px solid var(--u-focus); outline-offset:2px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-episode { grid-template-columns:56px minmax(0,1fr) 36px 28px; gap:8px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-ep-cover { width:56px; height:56px; }
#spotify-room-root .sr-ep-facts { color:var(--u-muted); font-size:12px; margin-top:4px !important; }
#spotify-room-root .sr-about { margin-top:14px; background:var(--u-card); border-radius:16px; padding:14px; box-shadow:0 4px 14px #1b263510; display:flex; flex-direction:column; gap:10px; }
#spotify-room-root .sr-about[hidden] { display:none; }
#spotify-room-root .sr-about h3 { margin:0; font-size:16px; }
#spotify-room-root .sr-about-row { display:flex; align-items:center; gap:12px; }
#spotify-room-root .sr-about-cover { width:64px; height:64px; object-fit:cover; flex:none; }
#spotify-room-root .sr-about-name { margin:0; font-weight:700; }
#spotify-room-root .sr-about .sr-col-more { align-self:flex-start; }
#spotify-room-root .sr-lyrics-card[hidden], #spotify-room-root .sr-lyrics-view[hidden], #spotify-room-root [data-control="lyrics"][hidden] { display:none; }
#spotify-room-root .sr-lyr-preview { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; color:var(--u-muted); font-size:14px; }
#spotify-room-root .sr-lyr-preview .is-current { color:var(--u-accent); font-weight:700; }
#spotify-room-root .sr-lyr-lines { list-style:none; margin:0; padding:8px 0 24px; display:flex; flex-direction:column; gap:10px; font-size:20px; line-height:1.35; color:var(--u-muted); }
#spotify-room-root .sr-lyr-lines li { cursor:pointer; border-radius:8px; padding:2px 6px; }
#spotify-room-root .sr-lyr-lines li:hover { background:#2e86ed14; }
#spotify-room-root .sr-lyr-lines .is-current { color:var(--u-accent); font-weight:700; }
#spotify-room-root .sr-lyr-plain p { margin:0; color:var(--u-ink); }
#spotify-room-root .sr-lyr-plain .sr-lyr-gap { height:10px; }
/* Row 655 typography addendum (Juha 24.11): one type scale 12/14/16/20/24 px (32 px only for a collection title),
   titles 600-700, body 14 px, meta 12-14 px in #5b6475 (5.3:1 or more on every panel background), line-height 1.3-1.45.
   The room is light only (row 647), so there is no dark variant to tune. No new fonts. */
#spotify-room-root { font-size:14px; line-height:1.4; }
#spotify-room-root h1, #spotify-room-root h2, #spotify-room-root h3 { line-height:1.3; font-weight:700; }
#spotify-room-root .sr-col-name { line-height:1.15; }
/* Card and tile titles stay inside their box: at most two lines, ellipsis, the full name in the title attribute. */
#spotify-room-root .sr-clamp2 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; white-space:normal; overflow-wrap:anywhere; text-overflow:ellipsis; }
#spotify-room-root .sr-card-open, #spotify-room-root .sr-search-card, #spotify-room-root .sr-quick-open { min-width:0; overflow:hidden; }
#spotify-room-root .sr-card-name, #spotify-room-root .sr-search-card strong { font-weight:700; line-height:1.3; min-height:2.6em; }
/* Quick tiles get room for the name (never one letter and an ellipsis). */
#spotify-room-root .sr-quick { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-quick { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
#spotify-room-root .sr-quick-open { min-height:56px; padding-right:48px; }
#spotify-room-root .sr-quick-name { flex:1 1 auto; min-width:0; line-height:1.3; }
/* Placeholder covers: a neutral tile with a note icon instead of a blank grey box. */
#spotify-room-root .sr-cover-blank, #spotify-room-root .sr-cover-empty { display:grid; place-items:center; background:linear-gradient(135deg,var(--u-wash),var(--u-line)); color:var(--u-muted); font-size:20px; line-height:1; }
#spotify-room-root .sr-cover-blank::before, #spotify-room-root .sr-cover-empty::before { content:"\266A"; }
#spotify-room-root .sr-col-cover.sr-cover-blank { font-size:64px; }
#spotify-room-root .sr-card-cover.sr-cover-blank, #spotify-room-root .sr-card-cover.sr-cover-empty, #spotify-room-root .sr-col-albums .sr-cover-blank, #spotify-room-root .sr-best-cover.sr-cover-empty { font-size:40px; }
/* Play-button alignment addendum. (a) The big play button and its action row share one centre line with even
   spacing; the row has room for the shadow, so the circle is never cut. */
#spotify-room-root .sr-col-actions { gap:12px; padding:6px 0 10px; }
#spotify-room-root .sr-col-actions button { width:40px; height:40px; padding:0; justify-content:center; flex:none; }
#spotify-room-root .sr-col-actions .sr-col-play { width:52px; height:52px; }
#spotify-room-root .sr-col-actions .sr-col-modes { width:auto; height:auto; }
#spotify-room-root .sr-col-actions .sr-col-modes button { width:auto; height:auto; padding:3px 10px; }
/* (b) A track row's play icon sits in the # column's box, vertically centred with the title/artist lines. */
#spotify-room-root .sr-track { --sr-no-w:32px; }
#spotify-room-root .sr-shell[data-layout="narrow"] .sr-track { --sr-no-w:28px; }
#spotify-room-root .sr-track-no { text-align:center; display:flex; justify-content:center; align-items:center; }
#spotify-room-root .sr-track-play { left:calc(8px + (var(--sr-no-w) - 28px) / 2); top:50%; transform:translateY(-50%); padding:0; justify-content:center; }
#spotify-room-root .sr-track-play .sr-icon { width:16px; height:16px; }
/* (c) Card play buttons: the same 8 px inset from the cover's bottom-right corner, whatever the title length. */
#spotify-room-root .sr-card, #spotify-room-root .sr-search-card, #spotify-room-root .sr-lib-list[data-mode="grid"] .sr-lib-row { container-type:inline-size; }
#spotify-room-root .sr-card-play { right:18px; bottom:auto; top:calc(100cqw - 50px); }
#spotify-room-root .sr-search-card .sr-search-play { right:20px; bottom:auto; top:calc(100cqw - 52px); }
#spotify-room-root .sr-lib-list[data-mode="grid"] .sr-lib-play { right:18px; bottom:auto; top:calc(100cqw - 50px); }
#spotify-room-root .sr-quick-play { top:50%; transform:translateY(-50%); }
#spotify-room-root .sr-card-play, #spotify-room-root .sr-quick-play, #spotify-room-root .sr-lib-play, #spotify-room-root .sr-search-play { padding:0; justify-content:center; }
/* (d) Player bar: equal transport boxes and equal-width time labels, so the buttons sit centred over the bar. */
#spotify-room-root .sr-transport button { width:36px; height:36px; padding:0; justify-content:center; }
#spotify-room-root .sr-transport .sr-play { width:40px; height:40px; }
#spotify-room-root .sr-progress > span { flex:0 0 44px; font-variant-numeric:tabular-nums; }
#spotify-room-root .sr-progress > span[data-elapsed] { text-align:right; }
