/* Reference layout: a single glass library, detached navigation and player. */
.liquid-library { --muted:rgba(255,255,255,.7); --faint:rgba(255,255,255,.55); }
.liquid-library .app-shell {
  position:relative;
  width:min(1240px,calc(100% - 200px));
  min-height:0;
  height:728px;
  max-height:calc(100dvh - 180px);
  margin:clamp(50px,10vh,96px) auto 84px;
  grid-template-columns:308px minmax(0,1fr);
  border-radius:32px;
  border:1px solid #ffffff4a;
  background:linear-gradient(115deg,#d8e1d537,#b1c3c428 56%,#a7b9b32e);
  box-shadow:inset 0 1px 1px #ffffff52,inset 1px 0 1px #ffffff25,0 20px 70px #0a1c2830;
  -webkit-backdrop-filter:blur(48px) saturate(125%);
  backdrop-filter:blur(48px) saturate(125%);
  transform:translateX(24px);
}
.liquid-library .sidebar {
  position:relative; top:0; height:100%; min-height:0;
  padding:23px 12px 20px 24px;
  border-right:0; background:#e8ede512;
  border-radius:31px 0 0 31px;
  overflow:auto; scrollbar-width:none;
}
.library-brand { display:flex; align-items:flex-start; justify-content:space-between; padding:0 12px 20px 0; }
.library-brand h2,.library-heading h1 { font-size:28px; font-weight:700; letter-spacing:-.035em; line-height:1.2; }
.library-brand p,.library-heading p { margin-top:6px; font-size:15px; color:#ffffffe0; }
.library-more,.library-sort { width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#e7e5d6b3; color:#6e7b79; box-shadow:none; font-size:19px; letter-spacing:1px; }
.library-nav { display:grid; gap:3px; margin:0 0 27px; }
.library-nav a,.library-nav button,.playlist-nav button {
  display:flex; align-items:center; gap:20px; min-width:0; width:100%; height:53px;
  padding:0 8px; border:0; border-radius:15px; color:#ffffffb3;
  background:transparent; box-shadow:none; font-size:15px; font-weight:400; text-align:left; text-decoration:none;
}
.library-nav svg,.playlist-nav svg { flex:none; width:23px; height:23px; }
.library-nav button:hover,.library-nav a:hover,.playlist-nav button:hover { background:#ffffff15; }
.library-nav button.selected { background:#ffffff20; color:#fff; }
.library-section-heading { display:flex; align-items:center; justify-content:space-between; padding:0 24px 16px 0; font-size:17px; font-weight:650; }
.library-section-heading span { font-size:22px; font-weight:400; }
.playlist-nav { display:grid; gap:4px; margin-left:-16px; }
.playlist-nav button { height:53px; gap:15px; padding:0 16px; color:#fff; }
.playlist-nav button.selected { background:#ffffff30; }
.playlist-nav img { width:31px; height:31px; object-fit:cover; border-radius:6px; flex:none; }
.playlist-nav .grid-icon { display:grid; place-items:center; width:31px; font-size:30px; line-height:1; }
.playlist-nav .add-playlist svg { width:31px; height:31px; padding:5px; background:#ffffff25; border-radius:6px; }
.library-account { margin-top:auto; display:none; }
.liquid-library .main-area { padding:23px 40px 45px; min-height:0; overflow:visible; }
.liquid-library .page-wrap { max-width:none; height:100%; padding:0; }
.liquid-library .mobile-top,.liquid-library .tabbar { display:none; }
.library-content { height:100%; display:flex; flex-direction:column; min-height:0; }
.library-heading { display:flex; justify-content:space-between; align-items:flex-start; flex:none; margin-bottom:16px; }
.library-sort { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.library-sort span { display:block; width:22px; height:2px; border-radius:2px; background:currentColor; }
.library-sort span:nth-child(2) { width:16px; }
.library-sort span:nth-child(3) { width:10px; }
.liquid-library .library-content .search-card { flex:none; min-height:42px; height:42px; padding:0 12px; gap:10px; margin-bottom:32px; border-radius:11px; background:#10252840; border:0; border-top:1px solid #081a2430; box-shadow:inset 0 1px 4px #09212a18,0 1px 0 #ffffff20; }
.liquid-library .search-card .search-icon { width:18px; height:18px; color:#ffffffb0; }
.liquid-library .search-card input { height:40px; font-size:15px; padding:0; background:transparent; box-shadow:none; border:0; }
.liquid-library .library-content .search-card > button { width:26px; height:28px; overflow:hidden; padding:0; border:0; background:none; box-shadow:none; font-size:0; }
.liquid-library .library-content .search-card > button::after { content:'+'; font-size:23px; font-weight:300; }
.playlist-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:32px; row-gap:34px; overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#ffffff30 transparent; padding:0 0 10px; align-content:start; }
.playlist-tile { display:block; min-width:0; padding:0; text-align:left; border:0; border-radius:8px; background:transparent; box-shadow:none; font-size:15px; font-weight:400; transition:transform .18s; }
.playlist-tile:hover { background:transparent; transform:translateY(-3px); filter:brightness(1.05); }
.playlist-art { width:100%; aspect-ratio:1; border-radius:8px; overflow:hidden; margin-bottom:7px; background:#ffffff12; position:relative; }
.playlist-art img { width:100%; height:100%; display:block; object-fit:cover; }
.playlist-tile b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:400; line-height:1.2; }
.playlist-tile > span { display:block; color:#ffffffc7; font-size:13px; line-height:1.3; margin-top:2px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.viral-art { display:flex; flex-direction:column; justify-content:space-evenly; align-items:center; background:repeating-linear-gradient(135deg,#f3467f 0 18px,#ffc839 18px 36px,#179a70 36px 54px,#1764e8 54px 72px,#10181d 72px 90px); font-weight:900; }
.viral-art span,.viral-art strong { background:#ffffff; color:#1764e8; font-size:clamp(15px,1.6vw,27px); letter-spacing:3px; padding:1px 3px; transform:rotate(-16deg); }
.viral-art span { color:#eab819; }
.library-rail { position:absolute; top:50%; left:-100px; transform:translateY(-50%); width:72px; padding:12px 9px; display:grid; gap:10px; border-radius:38px; background:linear-gradient(160deg,#eff6e52a,#a6b7b138); border:1px solid #ffffff3d; box-shadow:inset 0 1px 0 #ffffff20,0 12px 35px #102c2720; -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px); }
.library-rail button,.library-rail a { display:grid; place-items:center; width:52px; height:50px; padding:0; border:0; color:#fff; background:transparent; box-shadow:none; border-radius:50%; text-decoration:none; }
.library-rail svg { width:26px; height:26px; }
.library-rail .selected { background:#ffffff30; }
.radio-glyph { font-size:31px; font-weight:300; }
.liquid-library #player.now-card { position:absolute; z-index:20; left:50%; bottom:-42px; transform:translateX(-50%); width:min(784px,85%); min-height:0; height:76px; max-height:none; padding:10px 22px; border-radius:44px; display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:18px; overflow:visible; border:1px solid #ffffff35; background:linear-gradient(110deg,#bec8bb55,#8baba668); -webkit-backdrop-filter:blur(38px) saturate(140%); backdrop-filter:blur(38px) saturate(140%); box-shadow:inset 0 1px 0 #ffffff30,0 12px 30px #0a29251a; }
.liquid-library #player .player-controls { width:auto; flex:none; padding:0; border:0; background:none; border-radius:0; box-shadow:none; display:block; }
.liquid-library #player .control-group { display:flex; gap:12px; margin:0; }
.liquid-library #player .control-btn,.liquid-library #player .control-btn.play-btn { width:38px; height:42px; padding:0; border:0; background:transparent; box-shadow:none; }
.liquid-library #player .control-btn svg { width:25px; height:25px; }
.liquid-library #player .control-btn.play-btn svg { width:29px; height:29px; }
.liquid-library #player #now { flex:1; min-width:0; align-self:stretch; padding:5px 38px 5px 6px; background:#10252938; border-radius:9px; }
.liquid-library #player .np { flex-direction:row; text-align:left; align-items:center; gap:10px; height:100%; }
.liquid-library #player .np-art { width:40px; height:40px; border-radius:5px; }
.liquid-library #player .np-art img { border:0; border-radius:5px; box-shadow:none; }
.liquid-library #player .np-info { margin:0; min-width:0; }
.liquid-library #player .np-title { font-size:14px; font-weight:500; letter-spacing:0; line-height:1.25; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.liquid-library #player .np-meta { font-size:12px; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.liquid-library #player .np-state { display:none; }
.liquid-library #player .music-progress { position:absolute; left:200px; right:195px; bottom:12px; width:auto; margin:0; pointer-events:none; }
.liquid-library #player .progress-track { height:2px; opacity:.5; }
.liquid-library #player .progress-times { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.dock-extras { display:flex; align-items:center; gap:14px; flex:none; }
.dock-extras button,.dock-track-more { padding:0; width:32px; height:32px; border:0; background:transparent; box-shadow:none; }
.dock-extras svg { width:22px; height:22px; }
.dock-queue-button { font-size:26px; font-weight:400; }
.dock-track-more { position:absolute; right:196px; letter-spacing:2px; font-size:14px; }
.dock-volume { position:relative; display:block; font-size:18px; color:#fff; cursor:pointer; }
.dock-volume input { position:absolute; bottom:28px; right:-8px; width:100px; height:24px; padding:0; accent-color:#fff; opacity:0; pointer-events:none; transition:opacity .15s; }
.dock-volume:hover input,.dock-volume:focus-within input { opacity:1; pointer-events:auto; }
.library-sheet { position:absolute; right:18px; top:18px; bottom:18px; width:min(750px,calc(100% - 36px)); padding:24px; z-index:30; border:1px solid #ffffff50; border-radius:25px; background:rgba(45,71,75,.94); -webkit-backdrop-filter:blur(45px); backdrop-filter:blur(45px); box-shadow:0 20px 80px #081c2750; overflow:auto; }
.sheet-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.sheet-heading h2 { font-size:23px; }
.sheet-close { font-size:25px; }
.sheet-section-hidden { display:none!important; }
.library-sheet .listening-header h1,.library-sheet .listening-header .eyebrow,.library-sheet .listening-subtitle { display:none; }
.library-sheet .listening-header { margin-bottom:16px; }
.library-sheet .stats-grid,.library-sheet .audience-grid { grid-template-columns:1fr; }
.library-sheet .topbar { justify-content:space-between; }
.dock-settings { margin-bottom:18px; }
.dock-settings #connectBtn { margin-bottom:12px; }
.library-sheet .library-account { display:flex; margin-top:20px; }
.library-settings-link { display:block; margin-top:18px; color:var(--muted); font-size:13px; }
.liquid-library #suggestions { z-index:40; }
@media(min-width:1500px) { .liquid-library .app-shell { transform:translateX(48px); } }
@media(max-width:1350px) and (min-width:901px) {
  .liquid-library .app-shell { grid-template-columns:250px minmax(0,1fr); width:calc(100% - 160px); }
  .liquid-library .main-area { padding:23px 28px 40px; }
  .playlist-grid { column-gap:22px; row-gap:28px; }
  .library-rail { left:-85px; width:62px; padding:10px 5px; }
  .library-nav { margin-bottom:18px; }
  .library-nav a,.library-nav button { height:48px; }
}
@media(max-height:850px) and (min-width:901px) {
  .liquid-library .app-shell { margin-top:50px; max-height:calc(100dvh - 140px); }
  .library-nav { margin-bottom:10px; gap:0; }
  .library-nav a,.library-nav button,.playlist-nav button { height:44px; }
  .library-brand { padding-bottom:12px; }
  .library-section-heading { padding-bottom:10px; }
  .playlist-grid { row-gap:24px; }
  .liquid-library .library-content .search-card { margin-bottom:24px; }
}
@media(max-width:900px) {
  .liquid-library .app-shell { display:grid; width:calc(100% - 40px); height:calc(100dvh - 150px); max-height:none; min-height:400px; margin:24px auto 110px; grid-template-columns:190px minmax(0,1fr); transform:none; border-radius:26px; }
  .liquid-library .sidebar { display:flex; padding:22px 12px 18px 18px; }
  .library-brand h2,.library-heading h1 { font-size:24px; }
  .library-brand p,.library-heading p { font-size:13px; }
  .library-more { width:30px; height:30px; font-size:15px; }
  .library-nav a,.library-nav button,.playlist-nav button { font-size:13px; gap:12px; height:44px; }
  .library-nav { margin-bottom:18px; }
  .library-section-heading { font-size:15px; }
  .liquid-library .main-area { padding:22px 22px 30px; }
  .playlist-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 18px; }
  .library-rail { top:auto; bottom:-92px; left:50%; transform:translateX(-50%); width:auto; padding:6px 10px; display:flex; border-radius:32px; gap:8px; }
  .library-rail button,.library-rail a { width:42px; height:42px; }
  .liquid-library #player.now-card { bottom:-28px; width:calc(100% - 24px); height:66px; padding:8px 14px; gap:12px; }
  .liquid-library #player .control-group { gap:2px; }
  .liquid-library #player .control-btn,.liquid-library #player .control-btn.play-btn { width:32px; }
  .dock-extras { gap:4px; }
  .dock-track-more { right:145px; }
  .liquid-library #player .music-progress { left:135px; right:148px; bottom:10px; }
}
@media(max-width:600px) {
  .liquid-library .app-shell { width:calc(100% - 24px); height:calc(100dvh - 148px); grid-template-columns:1fr; margin-top:12px; }
  .liquid-library .sidebar { display:none; }
  .liquid-library .main-area { padding:22px 20px 28px; }
  .playlist-grid { gap:24px 18px; }
  .playlist-tile b { font-size:13px; }
  .playlist-tile > span { font-size:11px; }
  .liquid-library .library-content .search-card { margin-bottom:22px; }
  .liquid-library #player.now-card { width:calc(100% - 12px); padding:8px; gap:6px; }
  .liquid-library #player .control-group { gap:0; }
  .liquid-library #player #now { padding-right:6px; }
  .liquid-library #player .np-art { width:32px; height:32px; }
  .liquid-library #player .np-title { font-size:12px; }
  .liquid-library #player .np-meta { font-size:10px; }
  .dock-track-more,.dock-volume,.dock-settings-button { display:none; }
  .dock-extras { gap:0; }
  .liquid-library #player .music-progress { left:112px; right:48px; }
  .library-sheet { right:8px; top:8px; bottom:12px; width:calc(100% - 16px); padding:18px; }
  .library-rail { gap:3px; }
  .library-rail button,.library-rail a { width:40px; }
}

/* Radio occupies the reference's four-column artwork grid. */
.library-heading #radioSummary { font-size:13px; }
.library-radio-search { flex:none; margin:0 0 30px; gap:12px; }
.library-radio-search #radioFilter { height:42px; padding:0 14px; border-radius:11px; background:#10252840; border:0; border-top:1px solid #081a2430; box-shadow:inset 0 1px 4px #09212a18,0 1px 0 #ffffff20; }
.library-radio-search .radio-own { font-size:12px; }
.liquid-library .library-content #radioPanel { display:flex; flex-direction:column; min-height:0; padding:0; margin:0; border:0; background:none; box-shadow:none; }
.liquid-library .library-radio-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; overflow:auto; min-height:0; padding-bottom:12px; scrollbar-width:thin; scrollbar-color:#ffffff30 transparent; }
.library-radio-grid .station-card { border:0; border-radius:8px; background:none; }
.library-radio-grid .station-play { align-items:stretch; text-align:left; padding:0; gap:0; }
.library-radio-grid .station-play img,.library-radio-grid .station-placeholder { width:100%; height:auto; aspect-ratio:1; border-radius:8px; object-fit:contain; background:#ffffff10; margin:0 0 8px; }
.library-radio-grid .station-placeholder { font-size:64px; background:linear-gradient(145deg,#91c9b545,#273f6040); }
.library-radio-grid .station-play b { font-size:15px; font-weight:400; line-height:1.2; }
.library-radio-grid .station-play small { font-size:12px; margin-top:3px; opacity:.75; }
.library-radio-grid .station-card.selected .station-play img,.library-radio-grid .station-card.selected .station-placeholder { box-shadow:inset 0 0 0 2px #ffffff99; }
.library-radio-grid .station-card.selected .station-play b { color:#dbffe9; }
.station-settings .custom-station { margin:0; border:0; padding:0; }
@media(max-width:1350px) { .liquid-library .library-radio-grid { gap:24px; } }
@media(max-width:900px) { .liquid-library .library-radio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 18px; }.library-radio-search { flex-wrap:wrap; margin-bottom:22px; }.library-radio-search #radioFilter { flex-basis:100%; } }

/* Keep the logo separate from the glass tile and remove inherited pill shadows. */
.library-radio-grid .station-play,
.library-radio-grid .station-play:hover {
  border-radius:0; box-shadow:none; background:none; filter:none;
}
.library-radio-grid .station-artwork {
  display:grid; place-items:center; width:100%; aspect-ratio:1;
  padding:22%; margin-bottom:10px; overflow:hidden; border-radius:16px;
  background:linear-gradient(145deg,rgba(225,244,244,.13),rgba(21,47,55,.2));
  border:1px solid rgba(255,255,255,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  transition:background .18s,border-color .18s;
}
.library-radio-grid .station-play img,
.library-radio-grid .station-placeholder {
  width:100%; height:100%; min-width:0; aspect-ratio:1; margin:0;
  border:0; border-radius:0; object-fit:contain; background:none;
  box-shadow:none;
}
.library-radio-grid .station-placeholder { font-size:clamp(30px,4vw,56px); color:#ffffffb3; }
.library-radio-grid .station-card:hover { background:none; }
.library-radio-grid .station-card:hover .station-artwork { background:linear-gradient(145deg,#e1f4f42e,#152f5533); border-color:#ffffff40; }
.library-radio-grid .station-card.selected .station-artwork { border-color:#d9ffe8a6; box-shadow:inset 0 0 0 1px #d9ffe84d; }
.library-radio-grid .station-card.selected .station-play img,
.library-radio-grid .station-card.selected .station-placeholder { box-shadow:none; }
.library-radio-grid .station-remove { top:8px; right:8px; width:28px; height:28px; padding:0; background:#19383d80; }
