
/* Fold8 FIX3 — Samsung cover-display player layout and left cutout strip removal.
   AVEE visuals remain unchanged; these rules target sizing/placement and the non-AVEE spin surface. */
html.samsung-device, html.samsung-device body,
html.samsung-device .app-shell,
html.samsung-device .now-playing,
html.samsung-device #mainContent,
html.samsung-device #libraryView,
html.samsung-device #librarySection {
  background:#08080b!important;
}

/* Cover display portrait: keep the whole player visible instead of letting the disc consume the page. */
@media (orientation:portrait) and (max-width:599.98px) {
  html.samsung-device .app-shell{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-top:max(12px,env(safe-area-inset-top))!important;
    padding-left:12px!important;
    padding-right:12px!important;
    padding-bottom:calc(172px + env(safe-area-inset-bottom))!important;
  }
  html.samsung-device .now-playing:not(.hidden){
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    min-height:100dvh!important;
    height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-top:max(10px,env(safe-area-inset-top))!important;
    padding-right:16px!important;
    padding-bottom:max(14px,env(safe-area-inset-bottom))!important;
    padding-left:16px!important;
  }
  html.samsung-device .np-header{margin:0 0 10px!important;min-height:28px!important;}
  html.samsung-device #npVinyl{
    width:min(69vw,305px)!important;
    height:min(69vw,305px)!important;
    max-width:100%!important;
    max-height:none!important;
    margin:0 auto 14px!important;
    flex:0 0 auto!important;
  }
  html.samsung-device .np-info-row{margin:0 0 8px!important;}
  html.samsung-device .np-info h2{font-size:clamp(17px,8vw,27px)!important;line-height:1.05!important;}
  html.samsung-device .np-info p{font-size:clamp(11px,5vw,16px)!important;line-height:1.18!important;margin:4px 0 0!important;}
  html.samsung-device .quality-badge{margin:0 0 10px!important;align-self:flex-start!important;font-size:11px!important;padding:7px 12px!important;}
  html.samsung-device .scrubber-wrap{margin:0 0 10px!important;}
  html.samsung-device .times{font-size:11px!important;}
  html.samsung-device .transport{margin:2px 0 0!important;gap:4px!important;}
  html.samsung-device .transport .play-circle{width:66px!important;height:66px!important;font-size:26px!important;}
  html.samsung-device .np-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-top:12px!important;}
  html.samsung-device .np-actions button{min-height:56px!important;}
}

/* Cover display landscape: remove the large left reserved strip and keep the record within height. */
@media (orientation:landscape) and (max-height:500px) and (max-width:950px) {
  html.samsung-device .app-shell{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-top:max(8px,env(safe-area-inset-top))!important;
    padding-right:10px!important;
    padding-bottom:92px!important;
    padding-left:10px!important;
  }
  html.samsung-device .mini-player{
    left:6px!important;
    right:6px!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
  }
  html.samsung-device .now-playing:not(.hidden){
    padding-top:max(6px,env(safe-area-inset-top))!important;
    padding-right:12px!important;
    padding-bottom:max(6px,env(safe-area-inset-bottom))!important;
    padding-left:12px!important;
    grid-template-columns:minmax(0,42%) minmax(0,1fr)!important;
    grid-template-rows:24px minmax(0,1fr) auto auto minmax(54px,auto)!important;
    column-gap:12px!important;
    row-gap:2px!important;
    overflow:hidden!important;
  }
  html.samsung-device #npVinyl{
    --lossless-stage:min(50dvh,35vw,246px)!important;
    width:var(--lossless-stage)!important;
    height:var(--lossless-stage)!important;
  }
  html.samsung-device .np-header{min-height:24px!important;}
  html.samsung-device .np-info h2{font-size:clamp(16px,4.2vh,21px)!important;line-height:1.06!important;}
  html.samsung-device .np-info p{font-size:clamp(10px,2.8vh,13px)!important;margin:4px 0!important;}
  html.samsung-device .quality-badge{font-size:9px!important;padding:5px 10px!important;}
  html.samsung-device .times{font-size:10px!important;}
  html.samsung-device .transport .play-circle{width:58px!important;height:58px!important;font-size:24px!important;}
}

/* Unfolded portrait: shrink the player slightly so the track details and controls fit more naturally. */
@media (orientation:portrait) and (min-width:600px) {
  html.samsung-device #npVinyl{
    width:min(38dvh,66vw,360px)!important;
    height:min(38dvh,66vw,360px)!important;
    margin:0 auto clamp(10px,2.1dvh,18px)!important;
  }
  html.samsung-device .np-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;}
}
