/* Aurora Web: hide what only makes sense in the desktop app (local folders, mini window, server address). */
html.web #btnAddFolder,
html.web #btnOpenFiles,
html.web #btnMini,
html.web [data-act="add-folder"],
html.web [data-act="open-files"],
html.web #setFolders,
html.web #setAdd,
html.web .setting:has(#ytServer) { display: none !important; }

/* No window buttons in a browser: the title bar doesn't need to leave room for them. */
html.web .titlebar { padding-right: 18px; }

/* ======================================================================
   Touch screens (tablet at the stereo, phone): everything finger-sized.
   Only applies to touch devices - the PC browser keeps the desktop look.
   ====================================================================== */
@media (pointer: coarse) {
  html.web body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
  html.web input, html.web textarea { -webkit-user-select: text; user-select: text; }
  html.web:not(.l-phone) { --player-h: 128px; --title-h: 60px; }
  html.web.l-desktop { --side-w: 270px; }

  /* ---------- title bar + search ---------- */
  html.web:not(.l-phone) .search { height: 44px; flex-basis: 520px; }
  html.web:not(.l-phone) .search input { font-size: 16px; }
  html.web:not(.l-phone) .search kbd { display: none; }
  html.web:not(.l-phone) .titlebar .icon-btn { width: 46px; height: 46px; }

  /* ---------- sidebar ---------- */
  html.web:not(.l-phone) .nav-item { height: 50px; font-size: 16px; gap: 14px; }
  html.web:not(.l-phone) .nav-item .i { width: 22px; height: 22px; }
  html.web:not(.l-phone) .nav-label { font-size: 12px; margin-top: 22px; }
  html.web:not(.l-phone) .sidebar-foot .icon-btn { width: 46px; height: 46px; }

  /* ---------- generic buttons ---------- */
  html.web:not(.l-phone) .icon-btn { width: 48px; height: 48px; border-radius: 12px; }
  html.web:not(.l-phone) .icon-btn .i { width: 22px; height: 22px; }
  html.web:not(.l-phone) .icon-btn.sm, html.web .icon-btn.xs { width: 40px; height: 40px; }
  html.web:not(.l-phone) .btn { min-height: 46px; padding-left: 18px; padding-right: 18px; font-size: 15px; }
  html.web:not(.l-phone) .chip { min-height: 42px; padding: 0 18px; font-size: 15px; }
  html.web:not(.l-phone) .pill-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

  /* ---------- song lists (row height is fixed by the list code, so only text grows) ---------- */
  html.web:not(.l-phone) .row { font-size: 15px; }
  html.web:not(.l-phone) .row .t1 { font-size: 15.5px; }
  html.web:not(.l-phone) .row-fav { opacity: 1; }
  html.web:not(.l-phone) .card-play { opacity: 1 !important; transform: none !important; width: 52px; height: 52px; }

  /* ---------- player bar ---------- */
  html.web:not(.l-phone) .player { gap: 24px; padding: 0 22px; grid-template-columns: minmax(0, .9fr) minmax(var(--tp-min, 360px), 1.4fr) minmax(0, 1.1fr); }
  html.web:not(.l-phone) .extras .icon-btn { flex: none; }
  html.web:not(.l-phone) #btnShortcuts { display: none; }   /* keyboard shortcuts: no keyboard on a tablet */
  html.web:not(.l-phone) .np-cover { width: 80px; height: 80px; border-radius: 12px; }
  html.web:not(.l-phone) .np-title-sm { font-size: 17px; }
  html.web:not(.l-phone) .np-artist-sm { font-size: 14.5px; margin-top: 5px; }
  html.web:not(.l-phone) .np-remote { font-size: 13.5px; margin-top: 6px; }
  html.web:not(.l-phone) .np-remote .i { width: 16px; height: 16px; }
  html.web:not(.l-phone) .np-jam { font-size: 12.5px; height: 26px; margin-top: 6px; padding: 0 11px 0 9px; }
  html.web:not(.l-phone) .np-jam .i { width: 15px; height: 15px; }
  html.web:not(.l-phone) .q-remote { padding: 14px; font-size: 14.5px; }
  html.web:not(.l-phone) .transport { gap: 8px; }
  html.web:not(.l-phone) .transport-buttons { gap: 18px; }
  html.web:not(.l-phone) .transport-buttons .icon-btn { width: 56px; height: 56px; border-radius: 50%; }
  html.web:not(.l-phone) .transport-buttons .icon-btn .i { width: 26px; height: 26px; }
  html.web:not(.l-phone) #btnPrev .i, html.web #btnNext .i { width: 30px; height: 30px; }
  html.web:not(.l-phone) .play-btn { width: 68px; height: 68px; }
  html.web:not(.l-phone) .play-btn .i { width: 30px; height: 30px; }
  html.web:not(.l-phone) .time { font-size: 14px; min-width: 46px; }
  html.web:not(.l-phone) .seek { height: 36px; }
  html.web:not(.l-phone) .seek-track, html.web .seek:hover .seek-track { height: 7px; }
  html.web:not(.l-phone) .seek-thumb { transform: scale(1); width: 20px; height: 20px; right: -10px; margin-top: -10px; }
  html.web:not(.l-phone) .seek-tip { bottom: 34px; font-size: 13px; }
  html.web:not(.l-phone) .extras { gap: 4px; }
  html.web:not(.l-phone) .extras .icon-btn .i { width: 22px; height: 22px; }
  html.web:not(.l-phone) .volume .range { width: 110px; }
  html.web:not(.l-phone) .range { height: 36px; }
  html.web:not(.l-phone) .range::-webkit-slider-runnable-track { height: 7px; }
  html.web:not(.l-phone) .range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -8.5px; }

  /* ---------- full-screen "Now playing": even bigger controls ---------- */
  html.web:not(.np-stack) body.np-open { --player-h: 160px; }
  html.web:not(.np-stack) body.np-open .play-btn { width: 84px; height: 84px; }
  html.web:not(.np-stack) body.np-open .play-btn .i { width: 38px; height: 38px; }
  html.web:not(.np-stack) body.np-open .transport-buttons { gap: 26px; }
  html.web:not(.np-stack) body.np-open .transport-buttons .icon-btn { width: 66px; height: 66px; }
  html.web:not(.np-stack) body.np-open .transport-buttons .icon-btn .i { width: 30px; height: 30px; }
  html.web:not(.np-stack) body.np-open #btnPrev .i, html.web:not(.np-stack) body.np-open #btnNext .i { width: 36px; height: 36px; }
  html.web:not(.np-stack) body.np-open .seek { height: 44px; }
  html.web:not(.np-stack) body.np-open .seek-track { height: 9px; }
  html.web:not(.l-phone) .np-close { top: 14px; left: 18px; width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 0, 0, .25); }
  html.web:not(.l-phone) .np-close .i { width: 32px; height: 32px; }
  html.web:not(.l-phone) .np-sub { font-size: 21px; }
  html.web:not(.l-phone) .np-lyrics .lyric { font-size: clamp(22px, 2.4vw, 32px); }

  /* ---------- radio: big station tiles ---------- */
  html.web:not(.l-phone) .live-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  html.web:not(.l-phone) .live-card .card-t1 { font-size: 16px; }
  html.web:not(.l-phone) .live-card .card-t2 { font-size: 13.5px; }
  html.web:not(.l-phone) .live-add { width: 44px; height: 44px; }
  html.web:not(.l-phone) .live-add .i { width: 22px; height: 22px; }

  /* ---------- dialogs (equalizer, settings, menus) ---------- */
  html.web:not(.l-phone) .ctx .ctx-item { min-height: 48px; font-size: 15.5px; }
  html.web:not(.l-phone) .vrange { width: 40px; height: 220px; --eq-thumb: 26; }
  html.web:not(.l-phone) .switch .sw { transform: scale(1.25); transform-origin: left center; margin-right: 8px; }
}

/* touch + little height (tablet or phone held sideways): smaller bars so Now Playing keeps room */
@media (pointer: coarse) {
  html.web.l-short:not(.l-phone) { --player-h: 96px; --title-h: 52px; }
  html.web.l-short:not(.l-phone):not(.np-stack) body.np-open { --player-h: 104px; }
  html.web.l-short:not(.l-phone) .np-cover { width: 56px; height: 56px; }
  html.web.l-short:not(.l-phone) .play-btn, html.web.l-short:not(.l-phone):not(.np-stack) body.np-open .play-btn { width: 56px; height: 56px; }
  html.web.l-short:not(.l-phone) .transport-buttons .icon-btn, html.web.l-short:not(.l-phone):not(.np-stack) body.np-open .transport-buttons .icon-btn { width: 46px; height: 46px; }
  html.web.l-short:not(.l-phone) .seek, html.web.l-short:not(.l-phone):not(.np-stack) body.np-open .seek { height: 28px; }
  html.web.l-short:not(.l-phone) .transport { gap: 2px; }
  html.web.l-short:not(.l-phone) .np-close { top: 6px; width: 48px; height: 48px; }
  /* Now Playing as a stack (tablet held upright): finger-sized, but it has to fit the width */
  html.web.np-stack body.np-open .transport-buttons .icon-btn { width: 60px; height: 60px; }
  html.web.np-stack body.np-open .play-btn { width: 80px; height: 80px; }
}
