/* Phase 2: one library-first responsive composition across iOS and Android. */
@media(max-width:950px){
 :is(.ios-header,.mobile-disc-view) body[data-page="discos"]{overflow-x:clip}
 :is(.ios-header,.mobile-disc-view) .expanded-library #contenido,
 :is(.ios-header,.mobile-disc-view) .expanded-library .room-layout,
 :is(.ios-header,.mobile-disc-view) .expanded-library .collection{width:100%;max-width:100%;min-width:0}
 :is(.ios-header,.mobile-disc-view) .expanded-library .collection,
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-page-heading{scroll-margin-top:78px}
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-page-heading{
  padding:20px clamp(16px,5vw,32px) 12px;
 }
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-page-heading h1{
  font-size:clamp(25px,7vw,34px);line-height:1.15;
 }
 :is(.ios-header,.mobile-disc-view) .expanded-library .biblioteca-sidebar{
  padding:12px clamp(16px,5vw,32px) 8px;
  gap:6px;scroll-snap-type:x proximity;
 }
 :is(.ios-header,.mobile-disc-view) .biblioteca-sidebar>button{
  flex:none;min-height:44px;padding:8px 12px;scroll-snap-align:start;
 }
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-playlists{
  padding:8px clamp(16px,5vw,32px) 12px;
 }
 :is(.ios-header,.mobile-disc-view) .library-cover-row{gap:12px}
 :is(.ios-header,.mobile-disc-view) .library-cover-card{
  flex:0 0 clamp(112px,34vw,152px);max-width:152px
 }
 :is(.ios-header,.mobile-disc-view) .cover-title{
  font-size:clamp(19px,5vw,24px);line-height:1.04;
 }
 :is(.ios-header,.mobile-disc-view) .record-shelf-row{gap:14px}
 :is(.ios-header,.mobile-disc-view) .record-shelf-row .sleeve{
  flex:0 0 clamp(134px,44vw,198px);
 }
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-toolbar{
  padding:12px clamp(16px,5vw,32px)!important;
 }
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-column .disc-gallery{
  padding:12px clamp(16px,5vw,32px) 28px!important;
 }
 :is(.ios-header,.mobile-disc-view) .expanded-library .library-mini-player{
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-top:1px solid #eee5d327;
 }
 :is(.ios-header,.mobile-disc-view) .ios-player-sheet .ios-sheet-content{
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
 }
 :is(.ios-header,.mobile-disc-view) #librarySearchClear{
  min-width:44px;min-height:44px;
 }
}
@media(max-width:359px){
 :is(.ios-header,.mobile-disc-view) .expanded-library .disc-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 10px
 }
 :is(.ios-header,.mobile-disc-view) .ios-sheet-controls{padding-inline:14px}
}

/* Fixed mini player must never cover the footer's navigation or social links. */
@media(max-width:950px){
 :is(.ios-header,.mobile-disc-view) body[data-page="discos"].layered-ios-player .lvl-footer.illuminated-footer{
  padding-bottom:calc(128px + env(safe-area-inset-bottom,0px))!important;
 }
}

/* The same footer clearance is needed on wider iPadOS with the persistent player. */
@media(min-width:951px){
 .ios-header body[data-page="discos"].layered-ios-player .lvl-footer.illuminated-footer{
  padding-bottom:calc(128px + env(safe-area-inset-bottom,0px))!important;
 }
}

/* Text pictographs replaced by lightweight vector/canvas-independent controls. */
#libraryBack:not([hidden]){
 display:inline-flex;align-items:center;gap:8px;
 min-height:44px;
}
#libraryBack[hidden]{display:none!important}
#libraryBack .lvl-control-arrow{width:17px;height:17px}
.library-state .library-state-chevron{
 display:block;width:8px;height:8px;flex:none;
 border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
 transform:rotate(45deg);
}
.library-column.record-focus .library-state .library-state-chevron{
 transform:rotate(225deg);
}


/* The store can be designed and browsed before inventory is uploaded.
   Empty catalog state has no imaginary prices, unavailable player or dead search. */
body.catalogue-empty[data-page="discos"]{overflow-x:hidden;overflow-y:auto}
body.catalogue-empty[data-page="discos"] #contenido{
 height:auto!important;min-height:calc(100dvh - 78px);
 overflow:visible!important;
}
body.catalogue-empty[data-page="discos"] .listening-room,
body.catalogue-empty[data-page="discos"] .room-layout,
body.catalogue-empty[data-page="discos"] .library-column,
body.catalogue-empty[data-page="discos"] .collection{
 display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;
 width:100%;max-width:none;
}
body.catalogue-empty[data-page="discos"] :is(.deck-area,.listening-panel,.library-playlists,.biblioteca-sidebar,.library-toolbar,.library-mini-player,.ios-player-sheet){
 display:none!important;
}
body.catalogue-empty[data-page="discos"] .library-page-heading{
 max-width:1240px;margin:0 auto;padding:clamp(34px,5vw,70px) clamp(20px,6vw,80px) 0;
}
body.catalogue-empty[data-page="discos"] #discGallery{
 display:block!important;max-width:1240px;margin:0 auto;
 padding:clamp(24px,4vw,46px) clamp(20px,6vw,80px) clamp(70px,8vw,130px)!important;
 overflow:visible!important;
}
body.catalogue-empty[data-page="discos"] .library-empty.library-empty-catalogue{
 display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
 gap:clamp(32px,7vw,110px);max-width:none;align-items:center;
 border-top:1px solid #eee5d32b;padding:clamp(28px,4vw,48px) 0;
}
.library-empty-vinyl{
 display:grid;place-items:center;isolation:isolate;position:relative;
 width:100%;aspect-ratio:1;overflow:hidden;
 background:repeating-radial-gradient(circle at 50% 50%,#151515 0 3px,#232323 4px 5px,#131313 6px 9px);
 border:1px solid #eee5d328;box-shadow:0 22px 42px #0007;
}
.library-empty-vinyl::before{
 content:"";position:absolute;inset:27%;border-radius:50%;
 background:#603b36;border:1px solid #f0e3cc66;
 box-shadow:0 0 0 1px #0005,0 0 0 40px #0003;
}
.library-empty-vinyl::after{
 content:"";position:absolute;top:50%;left:50%;width:12px;height:12px;
 transform:translate(-50%,-50%);border:2px solid #e8d6b9;border-radius:50%;background:#151515;
}
.library-empty-vinyl span{
 z-index:1;font:400 clamp(34px,7vw,74px)/1 Georgia,serif;
 letter-spacing:-.09em;color:#eee5d3;
}
.library-empty-copy{min-width:0;max-width:550px}
.library-empty-kicker,.library-empty-preview{
 margin:0 0 16px;color:#bdb9a6;font-size:11px;font-weight:700;letter-spacing:.14em;
}
.library-empty-preview{font-size:9px;opacity:.75}
body.catalogue-empty[data-page="discos"] .library-empty-copy h2{
 margin:12px 0 22px;font:400 clamp(38px,4.5vw,66px)/1.05 Georgia,serif;
 letter-spacing:-.055em;color:#eee5d3;
}
.library-empty-copy>p:not(.library-empty-kicker):not(.library-empty-preview){
 font-size:clamp(15px,1.4vw,18px);line-height:1.75;color:#c8bea9;
}
.library-empty-link{
 display:inline-flex;align-items:center;gap:22px;min-height:48px;margin-top:20px;padding:10px 2px;
 border-bottom:1px solid #eee5d377;color:#eee5d3;text-decoration:none;
 font-size:12px;font-weight:700;letter-spacing:.08em;
}
.library-empty-link:hover{border-color:#eee5d3}
.library-empty-link:focus-visible{outline:2px solid #e7cba2;outline-offset:5px}
@media(max-width:800px){
 body.catalogue-empty[data-page="discos"] .library-empty.library-empty-catalogue{grid-template-columns:1fr;gap:30px}
 .library-empty-vinyl{max-width:440px;justify-self:center}
 body.catalogue-empty[data-page="discos"] .library-empty-copy h2{font-size:clamp(36px,8vw,56px)}
}
