/* Measured 366 px and user-reported 382 px browser geometries; standard phones stay unchanged. */
.compact-titlebar,.compact-project-details{display:none}
@media(min-width:364px) and (max-width:368px) and (min-height:520px) and (max-height:700px) and (min-aspect-ratio:52/100) and (max-aspect-ratio:71/100), (min-width:380px) and (max-width:384px) and (min-height:520px) and (max-height:700px) and (min-aspect-ratio:54/100) and (max-aspect-ratio:74/100){
html:root .app{min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left)}
html:root .compact-titlebar{display:flex;align-items:center;justify-content:space-between;flex:none;height:28px;padding:0 12px;border-bottom:1px solid #9b9b9b;background:linear-gradient(#f4f4f4,#c9c9c9);box-shadow:inset 0 1px #fff;color:#30363b;font-size:16px;font-weight:700}
html:root .compact-titlebar span{font-size:12px;font-weight:400;color:#666}
html:root body:not(.mobile-playing) .app .toolbar{display:grid;height:104px;padding:4px 8px;grid-template-columns:176px minmax(0,1fr);grid-template-rows:48px 44px;gap:2px 4px}
html:root body:not(.mobile-playing) .toolbar .player{grid-column:1/-1;grid-row:1;height:47px;padding:3px 10px;border-radius:6px}
html:root .toolbar .player .name{font-size:13px;line-height:19px}
html:root .toolbar .player .sub{display:none}
html:root .toolbar .player .track{height:22px;margin:0;gap:6px}
html:root .toolbar .player .time-label{font-size:11px;min-width:32px}
html:root .toolbar .player .time-rail{height:24px}
html:root body:not(.mobile-playing) .toolbar .left.transport{grid-column:1;grid-row:2;width:176px;min-width:0;height:46px;padding:0;align-items:center;justify-content:flex-start}
html:root body:not(.mobile-playing) .toolbar .transport-buttons{width:176px;height:46px;padding:0;gap:0;justify-content:flex-start}
html:root body:not(.mobile-playing) .toolbar .transport-btn.skip,
html:root body:not(.mobile-playing) .toolbar .transport-btn.play,
html:root body:not(.mobile-playing) .toolbar .inline-sound{width:44px;min-width:44px;height:44px}
html:root .toolbar .transport-btn.skip{--transport-disc:34px}
html:root .toolbar .transport-btn.play{--transport-disc:42px}
html:root .toolbar .right{grid-column:2;grid-row:2;width:100%;height:46px;gap:0;justify-content:flex-end}
html:root .toolbar .layout-switch{height:44px!important}
html:root .toolbar .layout-switch button{width:36px!important;min-width:36px;height:42px!important}
html:root .toolbar .mobile-search-toggle,
html:root .toolbar .mobile-contact-link{width:44px;min-width:44px;height:44px}
html:root body:not(.mobile-playing) .app .toolbar.search-open{height:150px}
html:root .toolbar.search-open .search{top:104px;left:8px;right:8px;width:calc(100% - 16px);height:42px}
html:root .content-area{flex-direction:column}
html:root body:not(.mobile-playing) .app .sidebar{display:flex;flex:none;align-items:stretch;width:100%;height:44px;min-height:44px;padding:0;overflow:hidden;border-right:0;border-bottom:1px solid #8b98aa}
html:root .sidebar .side-item[data-filter]{display:none}
html:root .sidebar .side-item[data-filter=featured],
html:root .sidebar .side-item[data-filter=commercials],
html:root .sidebar .side-item[data-filter=music],
html:root .sidebar .side-item[data-filter=all]{display:flex;flex:1;min-width:0;min-height:44px;justify-content:center;gap:3px;padding:0 3px;font-size:11px;white-space:nowrap}
html:root .sidebar .side-item span{min-width:0;overflow:hidden;text-overflow:ellipsis}
html:root .sidebar-heading,html .sidebar>a{display:none}
html:root body:not(.mobile-playing) .app .workspace{width:100%;height:auto;min-height:0;overflow:hidden}
html:root body:not(.mobile-playing) .app:not(.grid-mode):not(.list-mode) #flow{position:relative;inset:auto;display:block;flex:0 0 calc(56% - env(safe-area-inset-bottom) * .56);width:100%;height:calc(56% - env(safe-area-inset-bottom) * .56)!important;min-height:0;border-top:0;background:#000;overflow:clip}
html:root body:not(.mobile-playing) .app #flow .stage{top:4px;bottom:62px}
html:root body:not(.mobile-playing) .app #flow .cover{top:50%}
html:root body:not(.mobile-playing) .app #flow .flowtitle{display:block;top:calc(50% - 29px + var(--portrait-cover-half,100px) + 8px);bottom:auto;max-height:40px;padding:0 60px;font-size:14px;line-height:20px}
html:root body:not(.mobile-playing) .app #flow .flowtitle span{font-size:12px;line-height:18px}
html:root body:not(.mobile-playing) .app #flow .arrow{display:flex;width:44px;height:44px;top:auto;bottom:7px}
html:root .app #flow .portrait-flow-controls,
html:root .app #flow .portrait-flow-hint,
html:root .app #flow .scrubber,
html:root .app .splitter{display:none}
html:root body:not(.mobile-playing) .app:not(.grid-mode) .library{display:block;flex:1;min-height:0;width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
html:root .library table{width:100%;min-width:0;table-layout:fixed;font-size:13px}
html:root .library th,html .library td{display:none}
html:root .library th:first-child,html .library td:first-child,
html:root .library th:nth-child(2),html .library td:nth-child(2),
html:root .library th:nth-child(4),html .library td:nth-child(4){display:table-cell}
html:root .library th:first-child{width:auto}
html:root .library th:nth-child(2){width:52px}
html:root .library th:nth-child(4){width:108px}
html:root .library .sort-head{min-height:32px;padding:5px 10px;font-size:12px}
html:root .library td{height:46px;padding:4px 10px;border-right:1px solid #e1e1e1}
html:root .library td:nth-child(2){padding:5px 3px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
html:root .library td:nth-child(4){white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:16px}
html:root .library .row-project{gap:8px}
html:root .library .row-thumb{width:52px;height:37px;border-radius:2px}
html:root .library .row-project-title{display:none}
html:root .compact-project-details{display:block;min-width:0;flex:1}
html:root .compact-project-artist,
html:root .compact-project-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:18px}
html:root .compact-project-artist{font-size:13px;font-weight:400}
html:root .compact-project-title{font-size:11px;color:#777}
html:root .selected .compact-project-title{color:#52697f}
/* One status row fills the measured browser space; no empty strip beneath it.
   Subtract the reclaimed share from Cover Flow above so the list gets all of it. */
html:root body:not(.mobile-playing) .app .footer{display:flex;flex:none;height:32px;min-height:32px;padding:0 10px;font-size:11px;justify-content:flex-end;background-size:100% 32px;background-repeat:no-repeat;background-color:var(--compact-footer-edge,#b5b5b5)}
html:root[data-theme=dark]{--compact-footer-edge:#282929}
html:root .footer .footer-projects,html .footer:after{display:none}
html:root .theme-toggle{height:32px;min-height:32px;top:auto;left:max(8px,calc(env(safe-area-inset-left) + 8px));bottom:0}
html:root[data-theme=dark] .compact-titlebar{background:linear-gradient(#363737,#272828);border-color:#555;color:#d7dfe3;box-shadow:inset 0 1px #ffffff14}
html:root[data-theme=dark] .compact-titlebar span,
html:root[data-theme=dark] .compact-project-title{color:#b1b9bf}
html:root[data-theme=dark] .selected .compact-project-title{color:#344e60}
@media(max-width:420px){
 html:root body:not(.mobile-playing) .app .toolbar{grid-template-columns:168px minmax(0,1fr);padding-left:6px;padding-right:6px}
 html:root body:not(.mobile-playing) .toolbar .left.transport,
 html:root body:not(.mobile-playing) .toolbar .transport-buttons{width:168px}
 html:root body:not(.mobile-playing) .toolbar .inline-sound{width:36px;min-width:36px}
 html:root .toolbar .layout-switch button{width:36px!important;min-width:36px}
 html:root .toolbar .mobile-search-toggle,html .toolbar .mobile-contact-link{width:36px;min-width:36px}
 html:root .library th:nth-child(4){width:96px}
 html:root .library .row-thumb{width:40px;height:34px}
}
}
