/* Phone layout: full-width artwork, touch-sized controls, compact library. */
html{ -webkit-text-size-adjust:100%; }button,input,a{touch-action:manipulation}button{-webkit-tap-highlight-color:transparent}.app{padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:650px){
 .toolbar{height:156px;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));grid-template-columns:132px minmax(0,1fr);grid-template-rows:88px 44px;gap:8px;}
 .toolbar .left.transport{width:132px;min-width:132px;gap:0;padding:0;align-items:center;}
 .transport-buttons{height:46px;gap:0;padding:0}.transport-btn.skip,.transport-btn.play{width:44px;height:44px}.transport-btn.play svg{width:29px;height:29px}
 .toolbar .volume-control{width:124px;height:32px;gap:4px}.toolbar .volume-control input{width:84px;height:18px}.volume-control .sound-icon{width:32px;height:32px}.volume-control .volume-max{display:none}
 .player{grid-column:2;grid-row:1;height:78px;padding:7px 9px;border-radius:7px}.player:before,.player:after{display:none}.player .name{font-size:12px;line-height:18px}.player .sub{font-size:11px;line-height:17px}.player .track{height:26px;gap:3px;margin:0}.player .time-label{font-size:10px;min-width:30px}.player .time-rail{height:22px;min-width:20px;border-radius:5px;cursor:pointer}.time-rail::-webkit-slider-thumb{width:18px;height:22px}
 .right{grid-column:1/3;grid-row:2;gap:10px;height:44px}.layout-switch{height:42px!important}.layout-switch button{width:42px!important;height:40px!important}.search{max-width:none;min-width:0;height:42px;font-size:16px;flex:1;width:100%;}
 .content-area{flex-direction:column}.sidebar{display:flex;align-items:stretch;gap:0;width:100%;height:46px;min-height:46px;padding:0;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid #8b98aa;scrollbar-width:none;overscroll-behavior-x:contain}.sidebar::-webkit-scrollbar{display:none}.sidebar-heading,.sidebar>a{display:none}.sidebar .side-item{width:auto;min-height:44px;padding:0 12px;gap:5px;flex:none;font-size:12px;white-space:nowrap}.sidebar #aspectToggle{border-top:0;border-left:1px solid #a6b5c9;margin:0;padding:0 12px;min-height:44px;}
 .workspace{width:100%}.app:not(.grid-mode):not(.list-mode) .flow{height:50%;min-height:200px}.flowtitle{font-size:12px;bottom:48px;padding:0 42px;line-height:15px;max-height:30px;overflow:hidden}.stage{bottom:54px}.arrow{width:44px;height:44px;top:37%;font-size:28px}.arrow.prev{left:0}.arrow.next{right:0}.scrubber{height:30px;bottom:6px;left:9%;width:82%;padding:0 30px}.scrub-arrow{width:29px;line-height:28px;font-size:12px}.scrubber input{height:20px}.scrubber input::-webkit-slider-thumb{height:22px;width:38px}.splitter{height:18px;min-height:18px;}
 .library table{min-width:0;width:100%;table-layout:fixed;font-size:12px}.library th:first-child{width:80%}.library th:nth-child(2){width:20%}.library th:nth-child(n+3),.library td:nth-child(n+3){display:none}.library td{height:44px;padding:8px 10px}.library .sort-head{min-height:36px;padding:7px 10px}.library td:nth-child(2){font-variant-numeric:tabular-nums}.library{overscroll-behavior:contain}
 .app.grid-mode .grid-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;padding:16px}.grid-title{font-size:12px!important}.footer{height:27px;font-size:10px;padding:0 8px}.footer:after{display:none}
 .modal{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.windowbar{min-height:48px;padding:4px 8px}.windowbar #modalTitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.close{width:36px;height:36px;min-width:36px;border-radius:50%;position:relative}.close:after{content:'×';font-size:25px;color:#712323}.windowfoot{gap:8px;padding:8px}.windowfoot button{min-width:64px;min-height:44px}.windowfoot input{height:32px}.window{max-height:calc(100dvh - 16px)}
}
@media(max-width:360px){.toolbar{grid-template-columns:120px minmax(0,1fr);gap:8px 4px}.toolbar .left.transport{width:120px;min-width:120px}.transport-btn.skip,.transport-btn.play{width:40px}.player{padding:7px 5px}.player .time-label{min-width:27px;font-size:9px}.layout-switch button{width:39px!important}.sidebar .side-item{padding:0 10px}}
@media(min-width:651px) and (max-width:1000px){.toolbar{gap:10px;padding-left:10px;padding-right:10px}.right{width:250px;gap:10px}.search{width:130px}.sidebar{width:132px}.side-item{min-height:40px}.library td{height:30px}.app.grid-mode .grid-panel{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}
@media(max-height:500px) and (min-width:651px){.toolbar{height:82px}.app:not(.grid-mode):not(.list-mode) .flow{min-height:160px;height:65%}.sidebar-heading{padding-top:5px}.side-item{min-height:32px}.cover .reflection{height:35%}.flowtitle{bottom:32px;font-size:11px}}
/* Cleaner phone chrome, retaining the silver iTunes identity. */
.mobile-search-toggle{display:none}
@media(max-width:650px){
 .toolbar{height:144px;grid-template-columns:132px minmax(0,1fr);grid-template-rows:74px 44px;gap:8px;padding:8px 10px 10px;box-shadow:inset 0 1px #fff;}
 .player{grid-column:1/3;grid-row:1;height:70px;width:100%;padding:6px 12px}.player .name{font-size:13px}.player .sub{color:#5e6857;font-size:11px}.player .track{height:25px}.player .time-label{font-size:11px;min-width:36px}
 .toolbar .left.transport{grid-column:1;grid-row:2;width:132px;min-width:132px;align-items:flex-start;justify-content:center}.transport-buttons{height:44px}.toolbar .volume-control{display:none}
 .right{grid-column:2;grid-row:2;width:100%;justify-content:flex-end;gap:4px}.layout-switch{height:40px!important;border-color:#929292!important;box-shadow:0 1px #fff9!important}.layout-switch button{width:40px!important;height:38px!important}
 .mobile-search-toggle{display:grid;place-items:center;flex:none;width:40px;height:44px;border:0;background:transparent;color:#50575c;font-size:25px;padding:0}.right .search{display:none}.toolbar.search-open{height:196px}.toolbar.search-open .search{display:block;position:absolute;left:10px;right:10px;top:146px;width:calc(100% - 20px);height:40px;z-index:5}
 .sidebar{height:43px;min-height:43px;background:#dce3ec;overflow:hidden}.sidebar .side-item[data-filter="all"],.sidebar .side-item[data-filter="music"],.sidebar .side-item[data-filter="commercials"]{display:flex;justify-content:center;flex:1;padding:0 6px;font-size:11px;min-height:42px;border-right:1px solid #c5cdd7}.sidebar .side-item[data-filter="featured"],.sidebar .side-item[data-filter="recent"],.sidebar #aspectToggle{display:none}
 .flowtitle,.flow .scrubber{display:none}.stage{bottom:10px}.arrow{background:transparent;color:#bbb;font-size:26px;top:40%}.splitter{height:12px;min-height:12px;background:linear-gradient(#d8d8d8,#bcbcbc);border-color:#999}.splitter:after{width:30px;height:3px;opacity:.65}
 .library th{background:linear-gradient(#eee,#ddd);border-right:0}.library td{height:42px;border-right:0;border-bottom:1px solid #eceff2;padding:8px 12px}.library tr:nth-child(even){background:#f5f7fa}.library tbody tr.selected{background:#d7e6f6;color:#1e3651}.library .sort-head{font-size:11px;font-weight:normal;color:#626b76;min-height:32px;padding:5px 12px}.footer{display:none}
 .app.grid-mode .grid-panel{background:#f2f3f4;padding:20px 16px;gap:24px 16px}.grid-art{box-shadow:0 2px 5px #0002!important}
}
@media(max-width:360px){.toolbar{grid-template-columns:120px minmax(0,1fr);padding-left:8px;padding-right:8px}.toolbar .left.transport{width:120px;min-width:120px}.layout-switch button{width:36px!important}.mobile-search-toggle{width:36px}.right{gap:4px}}

/* Grid zoom uses the same silver slider language as the playback controls. */
.app{position:relative}.app.grid-mode .grid-panel{grid-template-columns:repeat(auto-fill,minmax(min(var(--grid-art-size,176px),100%),1fr))}
.grid-zoom-bar{display:none;position:absolute;left:10px;bottom:0;z-index:5;align-items:center;gap:4px;height:29px;width:174px}
.app.grid-mode .grid-zoom-bar{display:flex}.grid-zoom-bar button{display:grid;place-items:center;background:transparent;border:0;color:#51565a;width:26px;height:27px;font-size:20px;padding:0}
.grid-zoom-bar input{appearance:none;-webkit-appearance:none;flex:1;min-width:50px;height:8px;border:1px solid #85898c;border-radius:6px;background:linear-gradient(#8d9297,#e4e6e8);box-shadow:inset 0 1px 2px #777,0 1px #fff;cursor:pointer}
.grid-zoom-bar input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:13px;border:1px solid #747a80;border-radius:7px;background:linear-gradient(#fff,#c0c4c7 65%,#92989d);box-shadow:0 1px 2px #777,inset 0 1px #fff}
.grid-zoom-bar input::-moz-range-thumb{width:22px;height:13px;border:1px solid #747a80;border-radius:7px;background:linear-gradient(#fff,#c0c4c7 65%,#92989d)}
.grid-zoom-bar button:focus-visible,.grid-zoom-bar input:focus-visible{outline:2px solid #3478c8;outline-offset:2px}
@media(max-width:1000px){.app.grid-mode .footer-projects{display:none}.app.grid-mode .footer{justify-content:flex-end;padding-right:12px}.app.grid-mode .footer-credit{font-size:10px}}
@media(max-width:650px){.footer{display:flex;height:26px;min-height:26px;justify-content:center}.footer-projects{display:none}.app.grid-mode .grid-zoom-bar{position:static;width:100%;height:40px;min-height:40px;justify-content:flex-start;padding:0 10px;background:linear-gradient(#e7e7e7,#b5b5b5);border-top:1px solid #999}.grid-zoom-bar input{flex:none;width:126px;height:10px}.grid-zoom-bar button{width:36px;height:38px}.grid-zoom-bar input::-webkit-slider-thumb{height:20px;width:26px}.app.grid-mode .footer{justify-content:center;padding-right:8px}.app.grid-mode .grid-panel{gap:20px 14px}}

@media(max-width:650px){.app.grid-mode .grid-panel{grid-template-columns:repeat(auto-fill,minmax(min(calc(var(--grid-art-size,176px)*.72),100%),1fr))}}

/* Preserve the entire foreground artwork; a blurred duplicate fills its square. */
.grid-card .grid-art{display:block;isolation:isolate;background:#1c2025;overflow:hidden}
.grid-art img.grid-backdrop{position:absolute;inset:-14%;width:128%;height:128%;object-fit:cover;filter:blur(18px) brightness(.8);transform:scale(1.04);pointer-events:none;z-index:0}
.grid-art .grid-foreground{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100%;height:100%;overflow:hidden;z-index:1}
.grid-art .grid-foreground img{width:100%;height:100%;object-fit:contain;display:block}
.grid-art .grid-foreground.has-frame img{position:absolute;max-width:none;object-fit:fill}

@media(min-width:651px) and (max-width:1000px){.app.grid-mode .footer{padding-right:80px}}

/* Keep the video and its controls visible together on short landscape screens. */
.modal .window{display:flex;flex-direction:column;overflow:hidden;max-height:95dvh}
.windowbar,.windowfoot{flex:none}
.windowbar #modalTitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.videoarea{min-height:0;flex:0 1 auto;overflow:hidden}
.videoarea iframe{min-height:0;min-width:0;display:block}

body.video-open .toolbar .transport,body.video-open .toolbar .player{position:relative;z-index:110}
body.video-open .modal{padding-top:calc(var(--playback-toolbar-height,96px) + 8px)}
.modal .window{max-height:100%}

/* A custom divider position must still leave room for the project list after rotation. */
.app:not(.grid-mode):not(.list-mode) .flow{max-height:calc(100% - 100px)}

/* Mobile: the existing Cover Flow stage expands into an inline, swipe-dismissable player. */
.mobile-swipe-hint{display:none}
body.mobile-playing .toolbar,body.mobile-playing .sidebar,body.mobile-playing .library,body.mobile-playing .splitter,body.mobile-playing .grid-panel,body.mobile-playing .footer,body.mobile-playing .grid-zoom-bar{visibility:hidden}
body.mobile-playing .app #flow{display:block!important;position:fixed;inset:0;z-index:200;width:100%;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0;border:0;background:#000;perspective:none;touch-action:none;transform:translateY(var(--mobile-dismiss-y,0px));transition:transform .18s ease-out;will-change:transform}
body.mobile-playing #flow.is-dragging{transition:none}
body.mobile-playing #flow>.stage,body.mobile-playing #flow>.arrow,body.mobile-playing #flow>.flowtitle,body.mobile-playing #flow>.scrubber{display:none}
body.mobile-playing #flow>.window{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;background:#000;color:#eee;overflow:hidden}
body.mobile-playing .windowbar{position:relative;display:grid;grid-template-columns:88px minmax(0,1fr);gap:0 8px;flex:none;padding:calc(18px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));min-height:90px;background:#101112;color:#eee;touch-action:none;user-select:none;cursor:grab;font-size:12px;font-weight:normal}
body.mobile-playing .windowbar:before{content:'';position:absolute;left:calc(50% - 18px);top:calc(7px + env(safe-area-inset-top));width:36px;height:4px;border-radius:4px;background:#6b6e72}
body.mobile-playing .windowbar #close{width:auto;height:44px;min-width:80px;min-height:44px;border:0;border-radius:6px;padding:0 8px;background:transparent;color:#ddd;font-size:15px;text-align:left}
body.mobile-playing .windowbar #close:after{display:none}
body.mobile-playing .windowbar #modalTitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.mobile-playing .mobile-swipe-hint{display:block;grid-column:1/-1;text-align:center;font-size:11px;line-height:18px;color:#92969a}
body.mobile-playing #videoarea{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;height:auto;aspect-ratio:auto;background:#000;touch-action:none}
body.mobile-playing #videoarea iframe{flex:none;max-width:100%;max-height:100%;border:0;object-fit:contain}
body.mobile-playing .windowfoot{flex:none;background:#101112;color:#bbb;min-height:68px;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:12px}
body.mobile-playing .windowfoot button{min-height:44px;min-width:64px;color:#eee;background:#282b2f;border-color:#4c5055}
body.mobile-playing #modalSeek{height:32px;accent-color:#b5c4a5}
body.mobile-playing #fullscreen{display:none}
body.mobile-playing #playbackStatus:not(:empty){width:100%;font-size:12px;line-height:18px}
@media(prefers-reduced-motion:reduce){body.mobile-playing .app #flow{transition:none}}

.mobile-playback-time{display:none}
body.mobile-playing .mobile-playback-time{display:block;font-size:10px;min-width:30px;font-variant-numeric:tabular-nums;text-align:center;color:#c8cbc6}
body.mobile-playing #playbackStatus:empty{display:none}
body.mobile-playing .windowfoot{gap:8px}

/* Portrait phones: classic square albums, a mirrored floor, and two-line captions. */
@media(max-width:650px) and (orientation:portrait), (max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body:not(.mobile-playing) .app:not(.grid-mode):not(.list-mode) .flow{height:58%;min-height:min(calc(58vw + 98px),calc(100% - 100px));background:#000;perspective:900px}
 body:not(.mobile-playing) .flow .stage{top:0;bottom:52px}
 body:not(.mobile-playing) .flow .cover{top:46%;border:1px solid #171717;background:#000;box-shadow:0 2px 12px #000;overflow:visible}
 body:not(.mobile-playing) .flow .cover .art-viewport .art{object-fit:cover;transform:none}
 body:not(.mobile-playing) .flow .cover .reflection{top:calc(100% + 2px);height:48%;transform:none;opacity:.42;mask-image:linear-gradient(to bottom,#000b,transparent 95%);-webkit-mask-image:linear-gradient(to bottom,#000b,transparent 95%)}
 body:not(.mobile-playing) .flow .reflection img{position:absolute;top:0;left:0;width:100%;height:208.333%;object-fit:cover;transform:scaleY(-1)}
 body:not(.mobile-playing) .flow .flowtitle{display:block;top:calc(46% - 24px + var(--portrait-cover-half,110px) + 8px);bottom:auto;z-index:45;max-height:42px;padding:0 52px;font-size:12px;line-height:18px;text-shadow:0 1px 3px #000,0 0 8px #000}
 .flowtitle strong,.flowtitle span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.flowtitle strong{font-weight:700}.flowtitle span{font-size:11px;color:#d6d6d6}
 body:not(.mobile-playing) .flow .arrow{top:auto;bottom:7px;width:36px;height:36px;background:#e5e5e526;border:1px solid #aaa3;border-radius:50%;font-size:25px;color:#ddd}
 body:not(.mobile-playing) .flow .arrow.prev{left:10px}body:not(.mobile-playing) .flow .arrow.next{right:10px}
}

/* iPod touch-style portrait browsing fills the entire screen. */
.portrait-flow-controls,.portrait-flow-hint{display:none}
@media(max-width:650px) and (orientation:portrait), (max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.portrait-flow:not(.mobile-playing) .toolbar,body.portrait-flow:not(.mobile-playing) .sidebar,body.portrait-flow:not(.mobile-playing) .library,body.portrait-flow:not(.mobile-playing) .splitter,body.portrait-flow:not(.mobile-playing) .footer{display:none}
 body.portrait-flow:not(.mobile-playing) .content-area,body.portrait-flow:not(.mobile-playing) .workspace{height:100%;width:100%;min-height:0}
 body.portrait-flow:not(.mobile-playing) .app #flow{height:100%!important;flex:1;min-height:0;max-height:none;border:0;background:#000}
 body.portrait-flow:not(.mobile-playing) #flow .stage{inset:0 0 108px}
 body.portrait-flow:not(.mobile-playing) #flow .cover{top:48%}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle{top:calc(48% - 52px + var(--portrait-cover-half,140px) + 12px);padding:0 42px;max-height:48px;font-size:15px;line-height:22px}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle span{font-size:13px;line-height:20px}
 body.portrait-flow:not(.mobile-playing) .portrait-flow-controls{position:absolute;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:55;display:flex;align-items:center;justify-content:space-between;padding:8px max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));gap:10px;color:#8c8c8c;font-size:12px}
 .portrait-flow-controls button{min-height:44px;min-width:76px;padding:0 8px;border:0;background:transparent;color:#bdbdbd;font-size:13px}
 body.portrait-flow:not(.mobile-playing) .portrait-flow-hint{display:flex;position:absolute;left:64px;right:64px;bottom:calc(21px + env(safe-area-inset-bottom));z-index:45;flex-direction:column;align-items:center;gap:5px;color:#7f7f7f;font-size:11px;line-height:16px;pointer-events:none}
 body.portrait-flow:not(.mobile-playing) #flow .arrow{bottom:calc(18px + env(safe-area-inset-bottom));width:44px;height:44px;background:#e5e5e51f}
}
body.mobile-playing .portrait-flow-controls,body.mobile-playing .portrait-flow-hint{display:none}

/* Landscape phone browsing uses the classic iPod touch proportions. */
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.portrait-flow:not(.mobile-playing) #flow .stage{bottom:48px}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle{top:calc(48% - 23px + var(--portrait-cover-half,140px) + 10px);font-size:14px;line-height:20px;padding:0 64px}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle span{font-size:12px;line-height:18px}
 body.portrait-flow:not(.mobile-playing) .portrait-flow-controls>span,body.portrait-flow:not(.mobile-playing) .portrait-flow-hint{display:none}
 body.portrait-flow:not(.mobile-playing) #flow .arrow{bottom:calc(10px + env(safe-area-inset-bottom))}
}

/* Fractional Cover Flow motion follows the finger; physics settles it after release. */
.flow.album-in-motion .cover{transition:none!important}
.flow .cover,.flow .cover img{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}
.flow{touch-action:pan-y}
#timeRail,#modalSeek,#volume,#scrub{touch-action:none}
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.portrait-flow:not(.mobile-playing) #flow>.portrait-flow-controls,body.portrait-flow:not(.mobile-playing) #flow>.portrait-flow-hint,body.portrait-flow:not(.mobile-playing) #flow>.arrow,body.portrait-flow:not(.mobile-playing) #flow>.scrubber{display:none!important}
}

/* Album browsing has exactly one viewport and no vertical page scroll/bounce. */
html.album-scroll-lock{height:100%;overflow:hidden;overscroll-behavior:none;background:#000}
html.album-scroll-lock body{position:fixed;inset:0;width:100%;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;background:#000}
html.album-scroll-lock .app{height:100%;min-height:0;padding-bottom:0;overflow:hidden}
body.portrait-flow:not(.mobile-playing) #flow{touch-action:none;overscroll-behavior:none}

/* Portrait: fixed album stage above an independently scrolling project list. */
@media(max-width:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) .app .workspace{height:100%;overflow:hidden}
 body.portrait-flow:not(.mobile-playing) .app #flow{height:60%!important;flex:0 0 60%;min-height:0;max-height:none}
 body.portrait-flow:not(.mobile-playing) #flow .stage{bottom:72px}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle{top:calc(48% - 36px + var(--portrait-cover-half,110px) + 12px);font-size:13px;line-height:18px;padding:0 40px}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle span{font-size:11px;line-height:16px}
 body.portrait-flow:not(.mobile-playing) .portrait-flow-hint{display:none}
 body.portrait-flow:not(.mobile-playing) #flow .arrow{bottom:8px;width:36px;height:36px}
 body.portrait-flow:not(.mobile-playing) .app .library{display:block;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;border-top:1px solid #444}
 body.portrait-flow:not(.mobile-playing) .library table{min-width:0;width:100%}
 body.portrait-flow:not(.mobile-playing) .library td{height:42px}
}

/* Artwork with a wide/tall content area uses that shape in Cover Flow. */
.cover.native-art .art-viewport{background:#000}
.cover.native-art .art-viewport .art{transform:none!important}
.cover.native-art .reflection{top:calc(100% + 2px);height:48%;transform:none;overflow:hidden;mask-image:linear-gradient(to bottom,#000b,transparent 95%);-webkit-mask-image:linear-gradient(to bottom,#000b,transparent 95%)}
.cover.native-art .reflection-art{position:absolute;top:0;left:0;width:100%;height:208.333%;overflow:hidden;transform:scaleY(-1)}
.cover.native-art .reflection-art img{transform:none!important}

/* Compact phone front screens: reserve space above artwork and keep navigation touch-sized. */
@media(max-width:650px) and (max-height:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) #flow{--compact-album-top:calc(env(safe-area-inset-top,0px) + 60px)}
 body.portrait-flow:not(.mobile-playing) #flow .stage{top:var(--compact-album-top);bottom:64px}
 body.portrait-flow:not(.mobile-playing) #flow .cover{top:50%}
 body.portrait-flow:not(.mobile-playing) #flow .flowtitle{top:calc(50% + var(--compact-album-top)/2 - 32px + var(--portrait-cover-half,84px) + 12px);padding:0 58px}
 body.portrait-flow:not(.mobile-playing) #flow .arrow{width:44px;height:44px;bottom:8px}
}

/* Give Safari a solid black viewport edge to extend behind its landscape controls. */
html.album-browser-chrome{background-color:#000;color-scheme:dark}
html.album-browser-chrome body,html.album-browser-chrome .app{background-color:#000}
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.portrait-flow:not(.mobile-playing) .app #flow{position:fixed;inset:0;width:100%;height:100dvh!important;z-index:20;background:#000}
}

/* Compact artwork badges beside project names, without adding a table column. */
.library .row-project{display:flex;align-items:center;gap:8px;min-width:0}
.library .row-thumb{display:block;flex:none;width:24px;height:24px;overflow:hidden;border-radius:2px;background:#202020;box-shadow:0 0 0 1px #0002}
.library .row-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.library .row-project-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library td:first-child{padding-top:4px;padding-bottom:4px}
@media(max-width:650px){.library .row-thumb{width:28px;height:28px}}

/* Name badges belong to list rows; the artwork grid keeps its main covers only. */
.app.grid-mode .row-thumb{display:none}

/* Classic close button: a visible cross, glass highlight and subtle hover shine. */
.windowbar .close{position:relative;display:grid;place-items:center;flex:none;overflow:hidden;background:linear-gradient(#ffa29a 0%,#f66d63 45%,#e64b43 100%);box-shadow:inset 0 1px 1px #fff9,0 1px 1px #0003;transition:filter .14s,box-shadow .14s}
.windowbar .close:after{content:'×';position:relative;z-index:1;color:#761b17;font:700 17px/1 Arial,sans-serif;text-shadow:0 1px #ffb8ac;opacity:0;transition:opacity .12s}
.windowbar .close:before{content:'';position:absolute;left:12%;top:7%;width:76%;height:40%;border-radius:50%;background:linear-gradient(#fff9,#fff0);opacity:.55;transition:opacity .14s;pointer-events:none}
.windowbar .close:hover,.windowbar .close:focus-visible{filter:brightness(1.12);box-shadow:inset 0 1px 2px #fffe,0 0 5px #f4685880}
.windowbar .close:hover:before,.windowbar .close:focus-visible:before{opacity:1}
body.mobile-playing .windowbar #close{box-shadow:none;filter:none}
body.mobile-playing .windowbar #close:before{display:none}
/* Brushed-silver sidebar with stronger classic blue selection. */
.sidebar .side-item{transition:background .12s,color .12s,box-shadow .12s}
.sidebar .side-item:hover{background:linear-gradient(#e4edf8,#b8cbe1);box-shadow:inset 0 1px #fff9,inset 0 -1px #91a8c344}
.sidebar .side-item.active{color:#fff;background:linear-gradient(#a8c7eb 0%,#84abe0 12%,#6594cd 49%,#5383bd 50%,#3d6ba4 100%);box-shadow:inset 0 1px #daeaff,inset 0 -1px #2f5889,0 1px #ffffff40;text-shadow:0 1px 1px #284c78;font-weight:600}
.sidebar .side-item.active:hover{background:linear-gradient(#bdd7f4,#7eabe0 48%,#6092cb 50%,#4675ae)}
@media(min-width:651px){.sidebar-heading{font-size:11px;font-weight:700;letter-spacing:.65px;color:#53647c;padding:15px 12px 6px;text-shadow:0 1px #ffffffb3}.sidebar .side-item{font-size:13px;font-weight:600;padding-top:7px;padding-bottom:7px;min-height:33px}.sidebar #aspectToggle{font-size:11px;font-weight:400}}
@media(prefers-reduced-motion:reduce){.windowbar .close,.windowbar .close:before,.sidebar .side-item{transition:none}}

.windowbar .close:hover:after,.windowbar .close:focus-visible:after{opacity:1}



/* Contact stays inside the same silver window and Library, with two simple links. */
.contact-panel{display:none;flex:1;min-width:0;min-height:0;background:#f2f3f4;color:#303d50;align-items:center;justify-content:center;padding:36px 22px;overflow:auto;text-align:center}
body.contact-view .workspace>:not(.contact-panel){display:none!important}body.contact-view .contact-panel{display:flex}
.contact-content{max-width:100%;padding:20px 0}.contact-content p{font-size:clamp(16px,2.1vw,23px);line-height:1.8;margin:0 0 18px;color:#69727d}.contact-content a{color:#294563;text-decoration:none;overflow-wrap:anywhere}.contact-content p a{display:inline-block;border-bottom:1px solid #737b85}.contact-content a:hover{color:#2265aa}.contact-instagram{font-size:16px;line-height:1.8}.contact-content a:focus-visible{outline:2px solid #94bce9;outline-offset:5px}
body.contact-view .sidebar [data-contact]{background:linear-gradient(#a8c7eb,#6594cd 49%,#5383bd 50%,#3d6ba4);color:#fff;text-shadow:0 1px #41618a;font-weight:600}
@media(max-width:650px){body.contact-view .sidebar{flex:none}body.contact-view .contact-panel{padding:26px 16px}body.contact-view .contact-content p{font-size:17px}body.contact-view .contact-instagram{font-size:16px}}

body.contact-view #aspectToggle{display:none}body.contact-view .app{min-height:0}

/* Portrait album browsing: the live LCD and view switches sit above the list. */
.portrait-playbar{display:none}
@media(max-width:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) .portrait-playbar:not([hidden]){display:flex;flex:none;align-items:center;gap:7px;height:82px;min-height:82px;padding:7px 7px;background:linear-gradient(#eeeeec,#d2d2d2 50%,#b1b1b1);border-top:1px solid #808080;border-bottom:1px solid #939393;box-shadow:inset 0 1px #fff;touch-action:manipulation;color:#202020}
 .portrait-playbar .player{grid-column:auto;grid-row:auto;flex:1;width:auto;min-width:0;height:66px;margin:0;padding:4px 8px;border-radius:6px;background:linear-gradient(#ffffef,#e5ecd4 58%,#d4ddc5);color:#202020}
 .portrait-playbar .player:before,.portrait-playbar .player:after{display:none}.portrait-playbar .player .name{font-size:12px;line-height:17px}.portrait-playbar .player .sub{font-size:10px;line-height:13px;color:#5e6857}
 .portrait-playbar .player .track{display:flex;align-items:center;height:22px;margin:0;gap:3px}.portrait-playbar .time-label{min-width:29px;font-size:10px;font-variant-numeric:tabular-nums;color:#495942}.portrait-playbar .time-rail{min-width:20px;width:100%;height:22px;touch-action:none;accent-color:#67815e}
 .portrait-playbar .time-rail::-webkit-slider-thumb{width:22px;height:22px}.portrait-playbar .layout-switch{display:flex;height:36px!important;flex:none;border-radius:5px}.portrait-playbar .layout-switch button{width:29px!important;height:34px!important;min-width:29px;padding:5px!important}.portrait-playbar .layout-switch svg{width:19px;height:19px}
}

/* The compact portrait LCD now sits at the top of the screen. */
@media(max-width:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) .portrait-playbar:not([hidden]){height:calc(82px + env(safe-area-inset-top));min-height:calc(82px + env(safe-area-inset-top));padding-top:calc(7px + env(safe-area-inset-top))}
 body.portrait-flow:not(.mobile-playing) #flow .portrait-flow-controls{top:0}
}
@media(max-width:650px) and (max-height:650px) and (orientation:portrait){body.portrait-flow:not(.mobile-playing) #flow{--compact-album-top:60px}}
/* Classic iTunes title movement uses one readable copy and transform-only animation. */
.player .name .marquee-text{display:inline-block;white-space:nowrap;vertical-align:top}.player .name.is-marquee{text-overflow:clip;text-align:left}.player .name.is-marquee .marquee-text{animation:itunes-title-scroll var(--title-duration,10s) linear infinite}
@keyframes itunes-title-scroll{0%,15%{transform:translateX(0)}85%,100%{transform:translateX(var(--title-scroll,0px))}}
@media(prefers-reduced-motion:reduce){.player .name.is-marquee .marquee-text{animation:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}}

/* Center the LCD across the phone; place view buttons alongside album navigation. */
@media(max-width:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) .portrait-playbar:not([hidden]){position:relative;justify-content:center;z-index:60}
 .portrait-playbar .player{flex:none;width:100%;max-width:100%}
 .portrait-playbar .layout-switch{position:absolute;right:10px;top:calc(100% + 8px);z-index:70}
 body.portrait-flow:not(.mobile-playing) .portrait-flow-controls #portraitGrid{visibility:hidden}
}

/* Compact classic toolbar directly above the portrait album carousel. */
@media(max-width:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) .portrait-playbar:not([hidden]){gap:5px;padding-left:6px;padding-right:6px}
 .portrait-playbar .left.transport{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:none;width:80px;min-width:80px;padding:0;gap:2px}
 .portrait-playbar .transport-buttons{width:80px;height:32px;justify-content:center;gap:0;padding:0}
 .portrait-playbar .transport-btn.skip,.portrait-playbar .transport-btn.play{width:26px;height:32px}.portrait-playbar .transport-btn.skip svg{width:21px;height:21px}.portrait-playbar .transport-btn.play svg{width:27px;height:27px}
 .portrait-playbar .volume-control{position:static;display:flex;align-items:center;justify-content:center;gap:2px;width:80px;height:24px;margin:0}
 .portrait-playbar .volume-control .sound-icon{width:18px;height:24px}.portrait-playbar .volume-control svg{width:14px;height:14px}.portrait-playbar .volume-control .volume-max{display:grid;width:14px;height:20px}
 .portrait-playbar .volume-control input{appearance:none;-webkit-appearance:none;width:44px;min-width:20px;height:24px;margin:0;padding:0;background:transparent;cursor:pointer}
 .portrait-playbar .volume-control input::-webkit-slider-runnable-track{height:6px;border:1px solid #898e93;border-radius:5px;background:linear-gradient(#92999f,#f1f3f5);box-shadow:inset 0 1px 2px #888,0 1px #fff}
 .portrait-playbar .volume-control input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:13px;margin-top:-4px;border:1px solid #747a80;border-radius:50%;background:linear-gradient(#fff,#c0c4c7 65%,#92989d);box-shadow:0 1px 2px #777,inset 0 1px #fff}
 .portrait-playbar .volume-control input::-moz-range-track{height:6px;border:1px solid #898e93;border-radius:5px;background:linear-gradient(#92999f,#f1f3f5)}.portrait-playbar .volume-control input::-moz-range-thumb{width:13px;height:13px;border:1px solid #747a80;border-radius:50%;background:linear-gradient(#fff,#b4bac0)}
 .portrait-playbar .player{flex:1;width:auto;min-width:0;padding-left:5px;padding-right:5px}.portrait-playbar .player .name{font-size:11px}.portrait-playbar .player .sub{font-size:9px}.portrait-playbar .time-label{min-width:24px;font-size:9px}.portrait-playbar .player .track{gap:2px}
 .portrait-playbar .layout-switch{position:static;flex:none;width:80px;min-width:80px;height:36px!important;margin:0}
 .portrait-playbar .layout-switch button{width:26px!important;min-width:26px;height:34px!important;padding:3px!important}.portrait-playbar .layout-switch svg{width:18px;height:16px}
}

/* Twenty percent stronger artwork reflections; preserve the existing fade. */
.cover.native-art .reflection{opacity:.396}
@media(max-width:650px) and (orientation:portrait), (max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){body:not(.mobile-playing) .flow .cover .reflection{opacity:.504}}

/* Match the desktop Library label weight in the existing mobile tabs. */
@media(max-width:650px){.sidebar .side-item[data-filter="all"],.sidebar .side-item[data-filter="music"],.sidebar .side-item[data-filter="commercials"]{font-weight:600}}
/* Give the regular layout more room for artwork on tablets and unfolded screens. */
@media(min-width:651px) and (max-width:1366px){
 .app:not(.grid-mode):not(.list-mode) .flow{height:60%}
}
/* Keep the app shell fixed; only its library/grid panels scroll. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body .app{height:100%;min-height:0;padding-bottom:0}
.content-area,.workspace{min-height:0}
.flow{touch-action:none;overscroll-behavior:none}
.library,.grid-panel,.sidebar{overscroll-behavior:contain}
.footer{margin-top:auto;height:calc(29px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);flex-shrink:0}
.footer:after{bottom:calc(2px + env(safe-area-inset-bottom))}
/* Keep artwork zoom on the footer's text line, including the bottom safe area. */
.app.grid-mode .grid-zoom-bar{position:fixed;left:auto;right:max(10px,env(safe-area-inset-right));bottom:env(safe-area-inset-bottom);height:29px;min-height:0;width:174px;padding:0;border:0;background:transparent}
.app.grid-mode .grid-zoom-bar button{width:26px;height:27px}
.app.grid-mode .grid-zoom-bar input{flex:1;width:auto}
.app.grid-mode .footer{justify-content:center;padding-left:195px;padding-right:195px}
.app.grid-mode .footer:after{display:none}
@media(max-width:650px){.app.grid-mode .footer{justify-content:flex-start;padding-left:10px;padding-right:195px}}
/* A single uninterrupted Cover Flow scrollbar, without end arrows. */
.flow .scrubber{padding-left:8px;padding-right:8px}
.flow .scrubber:before,.flow .scrubber:after{display:none;content:none}
.window:fullscreen{width:100%;height:100%;max-width:none;max-height:none;display:flex;flex-direction:column;border:0;border-radius:0;background:#000}
.window:fullscreen .videoarea{flex:1;min-height:0;aspect-ratio:auto}
/* Portrait Cover Flow shares the exact toolbar used by Grid and List. */
@media(max-width:650px) and (orientation:portrait){
 body.portrait-flow:not(.mobile-playing) .toolbar{display:grid}
 body.portrait-flow:not(.mobile-playing) .sidebar{display:flex}
 body.portrait-flow:not(.mobile-playing) .content-area{height:auto;flex:1;min-height:0}
 body.portrait-flow:not(.mobile-playing) .app .workspace{height:auto;flex:1;min-height:0}
 body.portrait-flow:not(.mobile-playing) #flow>.portrait-flow-controls{display:none}
}
/* Four primary mobile collections stay visible without sideways navigation. */
@media(max-width:650px){
 .sidebar .side-item[data-filter="featured"]{display:flex}
 .sidebar .side-item[data-filter="all"],.sidebar .side-item[data-filter="music"],.sidebar .side-item[data-filter="commercials"],.sidebar .side-item[data-filter="featured"]{flex:1 1 25%;width:25%;min-width:0;min-height:44px;padding:0 3px;gap:3px;justify-content:center;font-size:10px;font-weight:600;border-right:1px solid #c5cdd7}
 .sidebar .side-item span{min-width:0;white-space:normal;line-height:12px;text-align:center}
 .sidebar{height:45px;min-height:45px}
 .toolbar .layout-switch{height:46px!important}
 .toolbar .layout-switch button{height:44px!important;min-width:40px}
}
@media(max-width:360px){.sidebar .side-item span{font-size:9px}}

/* Mobile contact is available in the browsing toolbar and the video header. */
.mobile-contact-link,#mobileMute{display:none}
@media(max-width:650px){
 .toolbar .mobile-contact-link{display:grid;place-items:center;flex:none;width:40px;height:44px;color:#50575c;font-size:23px;text-decoration:none;border-radius:4px}
 .toolbar .mobile-contact-link:focus-visible{outline:2px solid #3478c8;outline-offset:-2px}
}
@media(max-width:360px){
 .toolbar{grid-template-columns:108px minmax(0,1fr);column-gap:4px}
 .toolbar .left.transport{width:108px;min-width:108px}
 .toolbar .transport-btn{width:36px}
 .right{gap:2px}
 .toolbar .layout-switch button{width:34px!important;min-width:34px}
 .toolbar .mobile-search-toggle,.toolbar .mobile-contact-link{width:34px}
}
body.mobile-playing .windowbar{grid-template-columns:88px minmax(0,1fr) 40px}
body.mobile-playing .windowbar .video-contact-link{display:grid;place-items:center;width:40px;height:44px;color:#ddd;text-decoration:none;font-size:23px;grid-column:3;grid-row:1}
body.mobile-playing .windowbar #modalTitle{grid-column:2;grid-row:1}
body.mobile-playing #mobileMute{display:grid;place-items:center;flex:none;min-width:44px;width:44px;height:44px;padding:8px;position:relative}
#mobileMute svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#mobileMute[aria-pressed="true"]:after{content:'';position:absolute;width:28px;height:2px;background:currentColor;transform:rotate(-45deg)}
body.mobile-playing .windowfoot{gap:8px}
body.mobile-playing #modalSeek{flex:1;min-width:30px}

/* Artwork stays visible until the player's playhead actually advances. */
body.mobile-playing #videoarea{position:relative}
.video-loading-artwork{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;transition:opacity .18s ease}
.video-loading-label{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:7px 10px;border-radius:4px;background:#000b;color:#eee;font-size:12px;pointer-events:none}
body.mobile-playing #videoarea:not(.video-ready) iframe{opacity:0}
body.mobile-playing #videoarea.video-ready .video-loading-artwork,body.mobile-playing #videoarea.video-ready .video-loading-label{opacity:0;visibility:hidden}
@media(prefers-reduced-motion:reduce){.video-loading-artwork{transition:none}}

/* Full-screen mobile playback uses the same silver transport and green LCD as the library. */
.classic-mobile-controls{display:none}
body.mobile-playing .windowfoot{display:block;padding:10px max(8px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:linear-gradient(#ededed,#cfcfcf 48%,#aaa);border-top:1px solid #8e8e8e;box-shadow:inset 0 1px #fff;color:#202020;min-height:94px}
body.mobile-playing .windowfoot>#modalPlay,body.mobile-playing .windowfoot>#mobileMute,body.mobile-playing .windowfoot>.mobile-playback-time,body.mobile-playing .windowfoot>#modalSeek{display:none}
body.mobile-playing .classic-mobile-controls{display:flex;align-items:center;gap:8px;width:100%;height:76px}
body.mobile-playing .classic-mobile-controls .left.transport{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;width:100px;min-width:100px;gap:3px}
body.mobile-playing .classic-mobile-controls .transport-buttons{display:flex;align-items:center;justify-content:center;height:40px;width:100px;gap:0}
body.mobile-playing .classic-mobile-controls .transport-btn{min-width:0;min-height:40px;width:33px;height:40px;padding:0;border:0;border-radius:0;background:transparent;color:#646e74}
body.mobile-playing .classic-mobile-controls .transport-btn svg{width:25px;height:25px}
body.mobile-playing .classic-mobile-controls .transport-btn.play svg{width:32px;height:32px}
body.mobile-playing .classic-mobile-controls .volume-control{position:static;display:flex;align-items:center;width:100px;height:28px;margin:0;gap:2px}
body.mobile-playing .classic-mobile-controls .volume-control .sound-icon{display:grid;place-items:center;min-width:24px;min-height:28px;width:24px;height:28px;padding:0;border:0;background:transparent;color:#758086}
body.mobile-playing .classic-mobile-controls #muteBtn{position:relative}
body.mobile-playing .classic-mobile-controls #muteBtn[aria-label="Unmute audio"]:after{content:'';position:absolute;width:22px;height:1.5px;background:currentColor;transform:rotate(-45deg)}
body.mobile-playing .classic-mobile-controls .volume-control svg{width:18px;height:18px}
body.mobile-playing .classic-mobile-controls .volume-control .volume-max{display:grid;place-items:center;width:16px}
body.mobile-playing .classic-mobile-controls .volume-control input{flex:1;width:54px;min-width:0;height:28px;margin:0;accent-color:#b8bec3;touch-action:none}
body.mobile-playing .classic-mobile-controls .player{grid-column:auto;grid-row:auto;flex:1;width:auto;min-width:0;height:76px;margin:0;padding:5px 7px;border:2px solid #9fa794;border-radius:7px;background:linear-gradient(#ffffef,#e5ecd4 58%,#d4ddc5);box-shadow:0 0 3px #777,inset 0 1px #fff;color:#202020}
body.mobile-playing .classic-mobile-controls .player:before,body.mobile-playing .classic-mobile-controls .player:after{display:none}
body.mobile-playing .classic-mobile-controls .player .name{font-size:12px;line-height:19px}
body.mobile-playing .classic-mobile-controls .player .sub{font-size:11px;line-height:17px;color:#5e6857}
body.mobile-playing .classic-mobile-controls .player .track{display:flex;align-items:center;height:26px;margin:0;gap:4px}
body.mobile-playing .classic-mobile-controls .player .time-label{min-width:28px;font-size:10px;line-height:20px;color:#495942}
body.mobile-playing .classic-mobile-controls .player .time-rail{min-width:20px;height:26px;flex:1}
body.mobile-playing #playbackStatus:not(:empty){display:block;color:#3e4548;padding:5px 3px 0}
body.mobile-playing #videoarea,body.mobile-playing #videoarea iframe,body.mobile-playing .video-loading-artwork{border:0;outline:0;box-shadow:none;background:#000}
body.mobile-playing #videoarea iframe{clip-path:inset(0)}
body.mobile-playing #videoarea iframe[data-content-frame]{position:absolute;max-width:none;max-height:none}
@media(max-width:360px){body.mobile-playing .classic-mobile-controls{gap:5px}body.mobile-playing .classic-mobile-controls .left.transport,body.mobile-playing .classic-mobile-controls .transport-buttons,body.mobile-playing .classic-mobile-controls .volume-control{width:90px;min-width:90px}body.mobile-playing .classic-mobile-controls .transport-btn{width:30px}body.mobile-playing .classic-mobile-controls .player .name{font-size:11px}body.mobile-playing .classic-mobile-controls .time-label{font-size:9px;min-width:26px}}

/* Classic silver mobile video header, matching the approved preview direction. */
body.mobile-playing .windowbar{grid-template-columns:80px minmax(0,1fr) 40px;gap:0 8px;min-height:82px;padding:calc(14px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 5px max(10px,env(safe-area-inset-left));background:linear-gradient(#efefed,#d3d3d3 48%,#b9b9b9);border-bottom:1px solid #85898b;box-shadow:inset 0 1px #fff;color:#363c40}
body.mobile-playing .windowbar:before{left:calc(50% - 15px);top:calc(6px + env(safe-area-inset-top));width:30px;height:4px;border-radius:1px;background:repeating-linear-gradient(to bottom,#858b8f 0 1px,#f7f7f7 1px 2px)}
body.mobile-playing .windowbar #close{position:relative;isolation:isolate;width:80px;min-width:80px;height:44px;min-height:44px;margin:0;padding:0 7px;border:0;border-radius:5px;background:transparent;color:#4d565c;font-size:12px;text-align:center;text-shadow:0 1px #fff;box-shadow:none}
body.mobile-playing .windowbar #close:before{display:block;content:'';position:absolute;inset:5px 0;width:auto;height:auto;z-index:-1;opacity:1;border:1px solid #8b9195;border-radius:5px;background:linear-gradient(#fafafa,#d9dcdf 45%,#b5babd);box-shadow:inset 0 1px #fff,0 1px 1px #0002}
body.mobile-playing .windowbar #close:focus-visible{outline:2px solid #3478c8;outline-offset:-3px}
body.mobile-playing .windowbar #modalTitle{display:block;text-align:center;white-space:normal;text-shadow:0 1px #fff9}
body.mobile-playing .windowbar #modalTitle strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:700;line-height:18px}
body.mobile-playing .windowbar #modalTitle small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:400;line-height:15px;color:#626c72}
body.mobile-playing .windowbar .video-contact-link{position:relative;isolation:isolate;color:#4d565c;font-size:18px;text-shadow:0 1px #fff}
body.mobile-playing .windowbar .video-contact-link:before{content:'';position:absolute;inset:5px 2px;z-index:-1;border:1px solid #8b9195;border-radius:5px;background:linear-gradient(#fafafa,#d9dcdf 45%,#b5babd);box-shadow:inset 0 1px #fff,0 1px 1px #0002}
body.mobile-playing .mobile-swipe-hint{font-size:10px;line-height:18px;color:#606970;text-shadow:0 1px #fff9}
body.mobile-playing .window:focus{outline:none}

/* Approved option 2 in portrait; retain the short sidecar bar in landscape. */
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.mobile-playing .windowbar{height:44px;min-height:44px;padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));border-bottom:1px solid #85898b}
 body.mobile-playing .windowbar:before,body.mobile-playing .windowbar #modalTitle small,body.mobile-playing .mobile-swipe-hint{display:none}
 body.mobile-playing .windowfoot{min-height:62px;padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 body.mobile-playing .classic-mobile-controls{height:52px;gap:10px}
 body.mobile-playing .classic-mobile-controls .left.transport{gap:0}
 body.mobile-playing .classic-mobile-controls .transport-buttons{height:30px}
 body.mobile-playing .classic-mobile-controls .transport-btn{height:30px;min-height:30px}
 body.mobile-playing .classic-mobile-controls .volume-control{height:22px}
 body.mobile-playing .classic-mobile-controls .player{height:52px;padding:2px 8px;display:grid;grid-template-rows:16px 12px 16px;align-content:center}
 body.mobile-playing .classic-mobile-controls .player .name{font-size:11px;line-height:16px}
 body.mobile-playing .classic-mobile-controls .player .sub{font-size:9px;line-height:12px}
 body.mobile-playing .classic-mobile-controls .player .track{height:16px;line-height:16px}
 body.mobile-playing .classic-mobile-controls .player .time-label{font-size:9px;line-height:16px}
 body.mobile-playing .classic-mobile-controls .player .time-rail{height:18px}
}
@media(max-width:650px) and (orientation:portrait){
 body.mobile-playing .classic-mobile-controls{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:56px 44px;gap:4px;height:104px}
 body.mobile-playing .classic-mobile-controls .player{grid-row:1;width:100%;height:56px;padding:2px 8px;display:grid;grid-template-rows:16px 12px 16px;align-content:center}
 body.mobile-playing .classic-mobile-controls .player .name{font-size:11px;line-height:16px}
 body.mobile-playing .classic-mobile-controls .player .sub{display:block;font-size:9px;line-height:12px;color:#6b7364}
 body.mobile-playing .classic-mobile-controls .player .track{position:relative;justify-content:space-between;gap:0;height:16px;margin:0}
 body.mobile-playing .classic-mobile-controls .player .time-label{position:relative;z-index:1;font-size:9px;min-width:28px;line-height:16px;pointer-events:none}
 body.mobile-playing .classic-mobile-controls .player .time-rail{position:absolute;left:32px;right:32px;bottom:0;width:calc(100% - 64px);height:44px;min-height:44px;padding:28px 0 0;margin:0;appearance:none;-webkit-appearance:none;border:0;background:transparent}
 body.mobile-playing .classic-mobile-controls .time-rail::-webkit-slider-runnable-track{height:8px;border:2px solid #94a18d;border-radius:0;background:linear-gradient(#adb8a5,#f8faef)}
 body.mobile-playing .classic-mobile-controls .time-rail::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:0;border-radius:50%;background:#71856a}
 body.mobile-playing .classic-mobile-controls .time-rail::-moz-range-track{height:4px;border:2px solid #94a18d;background:#d9e1ce}
 body.mobile-playing .classic-mobile-controls .time-rail::-moz-range-thumb{width:14px;height:14px;border:0;background:#71856a}
 body.mobile-playing .classic-mobile-controls .left.transport{grid-row:2;flex-direction:row;justify-content:space-between;width:100%;min-width:0;height:44px;gap:8px}
 body.mobile-playing .classic-mobile-controls .transport-buttons{width:132px;min-width:132px;height:44px}
 body.mobile-playing .classic-mobile-controls .transport-btn{width:44px;min-width:44px;height:44px;min-height:44px}
 body.mobile-playing .classic-mobile-controls .volume-control{width:calc(100% - 140px);min-width:0;max-width:180px;height:44px;gap:3px}
 body.mobile-playing .classic-mobile-controls .volume-control .sound-icon{width:44px;min-width:44px;height:44px;min-height:44px}
 body.mobile-playing .classic-mobile-controls .volume-control input{height:44px;appearance:none;-webkit-appearance:none;border:0;background:transparent}
 body.mobile-playing .classic-mobile-controls .volume-control input::-webkit-slider-runnable-track{height:6px;border:1px solid #929a9f;border-radius:6px;background:linear-gradient(#8b959c,#f0f2f3)}
 body.mobile-playing .classic-mobile-controls .volume-control input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:1px solid #8b969e;border-radius:50%;background:linear-gradient(#fff,#b8c1c7)}
}

.landscape-video-touch{display:none}
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.mobile-playing #flow>.window{position:relative}
 body.mobile-playing #videoarea{position:absolute;inset:0;width:100%;height:100%;flex:none}
 body.mobile-playing .landscape-video-touch{display:block;position:absolute;inset:0;z-index:20;touch-action:none}
 body.mobile-playing .windowbar,body.mobile-playing .windowfoot{position:absolute;left:0;right:0;z-index:30;transition:opacity .2s ease,transform .2s ease}
 body.mobile-playing .windowbar{top:max(8px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:auto;width:80px;display:block;height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;pointer-events:none}
 body.mobile-playing .windowbar #modalTitle,body.mobile-playing .windowbar .video-contact-link,body.mobile-playing .windowbar .mobile-swipe-hint{display:none}
 body.mobile-playing .windowbar #close{pointer-events:auto}
 body.mobile-playing .windowfoot{bottom:0}
 body.mobile-playing .controls-hidden .windowbar{opacity:0;transform:translateY(-100%);pointer-events:none}
 body.mobile-playing .controls-hidden .windowfoot{opacity:0;transform:translateY(100%);pointer-events:none}
}

@media(max-width:650px) and (orientation:portrait){
 body:not(.mobile-playing) .toolbar .left.transport{width:132px;min-width:132px}
 body:not(.mobile-playing) .toolbar .volume-control{display:flex;width:124px;height:32px;align-items:center;gap:3px}
 body:not(.mobile-playing) .toolbar .volume-control input{flex:1;width:76px;min-width:0;height:32px;touch-action:none;border:0;background:transparent;box-shadow:none}
 body:not(.mobile-playing) .toolbar .volume-control input::-webkit-slider-runnable-track{height:6px;border:1px solid #898e93;border-radius:6px;background:linear-gradient(#8f9499,#e7e9eb)}
 body:not(.mobile-playing) .toolbar .volume-control input::-webkit-slider-thumb{margin-top:-5px}
 body:not(.mobile-playing) .toolbar .volume-control .sound-icon{width:32px;min-width:32px;height:32px}
}

/* Phone browsing: one aligned sound toggle replaces the volume slider. */
.inline-sound{display:none}
@media(max-width:650px){
 body:not(.mobile-playing) .toolbar .volume-control{display:none}
 body:not(.mobile-playing) .toolbar .transport-buttons{display:flex;align-items:center;width:132px;height:44px;gap:0}
 body:not(.mobile-playing) .toolbar .transport-btn{display:grid;place-items:center;width:33px;min-width:33px;height:44px;padding:0}
 body:not(.mobile-playing) .toolbar .inline-sound{display:grid;place-items:center;flex:none;width:33px;height:44px;padding:0;background:transparent;border:0;box-shadow:none;color:#67757d}
 .inline-sound svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .inline-sound .speaker{fill:currentColor;stroke:none}.inline-sound.muted .wave,.inline-sound:not(.muted) .cross{display:none}
 .inline-sound:focus-visible{outline:2px solid #3478c8;outline-offset:-3px;border-radius:4px}
}

/* Approved Classic Silver desktop navigation. */
#flow .arrow .navigation-icon{display:none}

@media(min-width:651px){
#flow .arrow{display:grid;place-items:center;width:36px;height:36px;padding:0;font-size:0;line-height:0;top:50%;bottom:auto;transform:translateY(-50%)}
#flow .arrow .navigation-icon{width:18px;height:18px;fill:currentColor;display:block}
#flow .scrubber{height:16px;padding:0;border:0;background:transparent;box-shadow:none;bottom:12px;left:15%;width:70%}
#flow #scrub{appearance:none;-webkit-appearance:none;height:8px;border:1px solid #7d868d;border-radius:8px;background:linear-gradient(#646e75,#9da6ad);box-shadow:inset 0 1px 2px #0009,0 1px #fff3}
#flow #scrub::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:40px;height:12px;margin:0;border:1px solid #7e878f;border-radius:8px;background:linear-gradient(#fff,#d6dce0 50%,#a0abb3);box-shadow:0 1px 2px #0007,inset 0 1px #fff}
#flow #scrub::-moz-range-thumb{width:40px;height:12px;border:1px solid #7e878f;border-radius:8px;background:linear-gradient(#fff,#a0abb3)}
#flow .flowtitle{bottom:36px}
}
@media(min-width:651px){#flow .arrow{border:1px solid #8f989f;border-radius:50%;color:#56616a;background:linear-gradient(#fff,#d9dfe3 46%,#a5afb7);box-shadow:inset 0 1px #fff,0 1px 4px #0009}#flow .arrow:hover{background:linear-gradient(#fff,#edf2f5 50%,#bdcbd4)}}
/* Approved polished silver desktop transport. */
@media(min-width:651px){.toolbar .transport-buttons{height:44px;gap:8px;align-items:center}.toolbar .transport-btn{filter:none;border-radius:50%;display:grid;place-items:center;padding:0;transition:background .12s,box-shadow .12s,transform .12s}.toolbar .transport-btn.skip{width:32px;height:32px}.toolbar .transport-btn.play{width:42px;height:42px}.toolbar .transport-btn.skip svg{width:18px;height:18px}.toolbar .transport-btn.play svg{width:24px;height:24px}.toolbar .transport-btn svg{fill:#606b73;stroke:#606b73}.toolbar .transport-btn.is-playing .pause-icon{fill:none;stroke-width:4}.toolbar .transport-btn:active{transform:translateY(1px)} .toolbar .transport-btn{border:1px solid #8c969d;background:linear-gradient(#fff,#e6eaed 40%,#bac3ca);box-shadow:inset 0 1px #fff,0 1px 2px #0003}.toolbar .transport-btn:hover{background:linear-gradient(#fff,#f5f8fa 40%,#c9d7e0);box-shadow:inset 0 1px #fff,0 1px 4px #61758666}}

/* Approved charcoal/slate theme. No reveal or glow animations. */

.theme-toggle{position:fixed;left:max(8px,env(safe-area-inset-left));bottom:env(safe-area-inset-bottom);z-index:85;display:flex;align-items:center;justify-content:center;gap:5px;height:29px;min-width:62px;padding:0 8px;border:0;background:transparent;color:#515e67;font-size:11px;cursor:pointer}
.theme-toggle svg{width:15px;height:15px;fill:currentColor}.theme-toggle:focus-visible{outline:2px solid #73a3cf;outline-offset:-2px;border-radius:4px}.footer:after{display:none}
html[data-theme=dark]{color-scheme:dark;background:#181818}
html[data-theme=dark] body{background:#181818;color:#e1e6e9}
html[data-theme=dark] .toolbar,html[data-theme=dark] .windowbar,html[data-theme=dark] .windowfoot{background:linear-gradient(#353636,#282929 55%,#222323);border-color:#181818;box-shadow:inset 0 1px #707a8050;color:#e0e5e9;text-shadow:none}
html[data-theme=dark] .sidebar{background:linear-gradient(90deg,#282929,#242525);border-color:#181818;color:#dce3e9}
html[data-theme=dark] .sidebar-heading{color:#9daebd}
html[data-theme=dark] .side-item{color:#d1dbe3}
html[data-theme=dark] .side-item:hover{background:#383939}
html[data-theme=dark] .side-item.active{background:linear-gradient(#575858,#414242);color:#fff;text-shadow:0 1px #2a2b2b}
html[data-theme=dark] .player{background:linear-gradient(#48533f,#384733 58%,#303e2c);border-color:#68745e;box-shadow:inset 0 1px #7d896b44,0 0 3px #000;color:#e8eddf}
html[data-theme=dark] .player .sub,html[data-theme=dark] .player .time-label{color:#c0cbb4}
html[data-theme=dark] .player:before,html[data-theme=dark] .player:after{color:#a2b28d}
html[data-theme=dark] .time-rail{background:transparent!important;box-shadow:none!important;border-color:#788d9b!important;accent-color:#69808f}
html[data-theme=dark] .time-rail::-webkit-slider-runnable-track{background:#263021;border-color:#78866c}
html[data-theme=dark] .time-rail::-webkit-slider-thumb{background:#9fb18b}
html[data-theme=dark] .library{background:#181818;color:#dce3e9;scrollbar-color:#67737c #202121}
html[data-theme=dark] .library th{background:linear-gradient(#3b3c3c,#282929);border-color:#484949;color:#e0e6ec;text-shadow:none}
html[data-theme=dark] .library td{border-color:#333434}
html[data-theme=dark] .library tbody tr{background:#202121;color:#d5dfe7}
html[data-theme=dark] .library tr:nth-child(even){background:#282929}
html[data-theme=dark] .library tbody tr.selected{background:linear-gradient(#4c4d4d,#3b3c3c);color:#fff}
html[data-theme=dark] .sort-head{color:#d3dde5;text-shadow:none}
html[data-theme=dark] .grid-panel,html[data-theme=dark] .app.grid-mode .grid-panel{background:linear-gradient(#242525,#181818)}
html[data-theme=dark] .grid-title{color:#e0e7ed}
html[data-theme=dark] .grid-subtitle,html[data-theme=dark] .grid-card .grid-sub{color:#a7b6c2}
html[data-theme=dark] .footer,html[data-theme=dark] .splitter{background:linear-gradient(#363737,#282929);border-color:#181818;color:#b4c0c9}
html[data-theme=dark] .footer{box-shadow:inset 0 1px #68768044}
html[data-theme=dark] .theme-toggle,html[data-theme=dark] .grid-zoom-bar button{color:#d1dce5}
html[data-theme=dark] .search{background:#181818;color:#e4eaf0;border-color:#505151;box-shadow:inset 0 1px 3px #0008;text-shadow:none}
html[data-theme=dark] .search::placeholder{color:#a8b4bd}
html[data-theme=dark] .layout-switch button{background:linear-gradient(#444545,#282929);color:#d4dee6;border-color:#1e1f1f}
html[data-theme=dark] .layout-switch button.active{background:linear-gradient(#202121,#454646);box-shadow:inset 0 2px 4px #0008;color:#fff}
html[data-theme=dark] .transport-btn{background:linear-gradient(#4b4c4c,#2c2d2d)!important;border-color:#666767!important;box-shadow:inset 0 1px #b2bec744,0 1px 2px #0007!important;filter:none}
html[data-theme=dark] .transport-btn svg{fill:#dce5ec!important;stroke:#dce5ec!important}
html[data-theme=dark] .transport-btn.is-playing .pause-icon{fill:none!important}
html[data-theme=dark] .inline-sound,html[data-theme=dark] .sound-icon,html[data-theme=dark] .mobile-search-toggle,html[data-theme=dark] .mobile-contact-link{color:#c3d0da!important}
html[data-theme=dark] .volume-control svg{fill:#c3d0da;stroke:#c3d0da}
html[data-theme=dark] .contact-card,html[data-theme=dark] .contact-view .contact-page{background:#283139;color:#d9e3eb}
html[data-theme=dark] .contact-view a{color:#d9e3eb}
html[data-theme=dark] #flow .arrow{background:linear-gradient(#505151,#303131);border-color:#686969;color:#e0e8ee;box-shadow:inset 0 1px #b8c6d044,0 1px 4px #0009}
html[data-theme=dark] body.mobile-playing .windowbar #close:before,html[data-theme=dark] body.mobile-playing .windowbar .video-contact-link:before{background:linear-gradient(#464747,#292a2a);border-color:#646565;box-shadow:inset 0 1px #9caeb855}
html[data-theme=dark] body.mobile-playing .windowbar #close,html[data-theme=dark] body.mobile-playing .windowbar #modalTitle,html[data-theme=dark] body.mobile-playing .windowbar .video-contact-link{color:#e0e8ed;text-shadow:none}
html[data-theme=dark] body.mobile-playing .windowbar #modalTitle small{color:#b2c1cb}
body.mobile-playing .theme-toggle{display:none}
@media(max-width:650px) and (orientation:portrait){body.portrait-flow:not(.mobile-playing) .app .footer{display:flex;min-height:32px;height:calc(32px + env(safe-area-inset-bottom));font-size:9px;padding-left:60px}.theme-toggle{height:32px;min-width:54px;font-size:10px}html[data-theme=dark] .sidebar{background:#282929}html[data-theme=dark] .sidebar .side-item{border-color:#3b3c3c}html[data-theme=dark] .toolbar .transport-btn{border:0!important;background:transparent!important;box-shadow:none!important}.footer-credit{font-size:9px}}
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){body.album-mode .theme-toggle{display:none}}


html[data-theme=dark] .side-item.active,html[data-theme=dark] .library tbody tr.selected{background:linear-gradient(#9eb8dd,#88a7d2);color:#10273c;text-shadow:0 1px #d8e8fb66;box-shadow:inset 0 1px #c8def5;}
html[data-theme=dark] .player{background:linear-gradient(#353737,#242626 58%,#1c1e1e);border-color:#6a7070;color:#f0f2f2;box-shadow:inset 0 1px #72777744,0 0 4px #0008;}
html[data-theme=dark] .player .sub,html[data-theme=dark] .player .time-label{color:#b8c1c1}
html[data-theme=dark] .player:before,html[data-theme=dark] .player:after{color:#929f9f}
html[data-theme=dark] .player .time-rail::-webkit-slider-runnable-track{background:linear-gradient(#151818,#333939);border-color:#687575;box-shadow:inset 0 1px 2px #0008}
html[data-theme=dark] .player .time-rail::-webkit-slider-thumb{background:linear-gradient(#dae5ee,#9eb8dd);border-color:#8ba7c7}
html[data-theme=dark] .player .time-rail::-moz-range-track{background:#242a2a;border-color:#687575}
html[data-theme=dark] .player .time-rail::-moz-range-thumb{background:#9eb8dd;border-color:#8ba7c7}
html[data-theme=dark] .player .name{text-shadow:0 1px #0008}


html[data-theme=dark] .player{background:linear-gradient(#b7c2ca,#98aab7 58%,#8198a8);border-color:#6f8492;box-shadow:inset 0 1px #d2dce3,0 0 4px #0007;color:#21313d}
html[data-theme=dark] .player .name{color:#233b4b;text-shadow:0 1px #fff7}
html[data-theme=dark] .player .sub,html[data-theme=dark] .player .time-label{color:#344e60}
html[data-theme=dark] .player:before,html[data-theme=dark] .player:after{color:#6a8b9f}
/* Expanded mobile playback keeps the approved dark-mode blue LCD. */
html[data-theme=dark] body.mobile-playing .classic-mobile-controls .player{background:linear-gradient(#b7c2ca,#98aab7 58%,#8198a8);border-color:#6f8492;box-shadow:inset 0 1px #d2dce3,0 0 4px #0007;color:#21313d}
html[data-theme=dark] body.mobile-playing .classic-mobile-controls .player .sub,html[data-theme=dark] body.mobile-playing .classic-mobile-controls .player .time-label{color:#344e60}
html[data-theme=dark] .side-item.active,html[data-theme=dark] .library tbody tr.selected{background:linear-gradient(#b7c2ca,#98aab7 58%,#8198a8);color:#21313d;text-shadow:0 1px #d2dce366;box-shadow:inset 0 1px #d2dce3}
html[data-theme=dark] .layout-switch button.active,html[data-theme=dark] .views button.active{background:linear-gradient(#98aab7,#8198a8);color:#21313d;border-color:#6f8492;text-shadow:none}
html[data-theme=dark] #timeRail::-webkit-slider-runnable-track{background:linear-gradient(#697e8c,#b7c2ca)!important;border-color:#788d9b!important}
html[data-theme=dark] #timeRail::-webkit-slider-thumb{background:#69808f!important;border-color:#526a79!important}
html[data-theme=dark] #timeRail::-moz-range-track{background:#98aab7!important;border-color:#788d9b!important}
html[data-theme=dark] #timeRail::-moz-range-thumb{background:#69808f!important;border-color:#526a79!important}
html[data-theme=dark] :focus-visible{outline-color:#98aab7!important}
html[data-theme=dark] .library,html[data-theme=dark] .grid-panel{scrollbar-color:#8198a8 #202121}


html[data-theme=dark] .library{background:#202121}
html[data-theme=dark] .library tbody tr{background:#202121;color:#d5dfe7}
html[data-theme=dark] .library tbody tr:nth-child(even){background:#343636;color:#d5dfe7}
html[data-theme=dark] .library tbody td{border-right-color:#ffffff14;border-bottom-color:#ffffff08}
html[data-theme=dark] .library tbody tr.selected{background:linear-gradient(#b7c2ca,#98aab7 58%,#8198a8);color:#21313d}

html[data-theme=dark] .contact-panel{background:linear-gradient(#282929,#202121);color:#d5dfe7}
html[data-theme=dark] .contact-content p{color:#bbc5ca}
html[data-theme=dark] .contact-content a{color:#b7c2ca}
html[data-theme=dark] .contact-content a:hover{color:#e0e7ec}
html[data-theme=dark] body.contact-view .sidebar [data-contact]{background:linear-gradient(#b7c2ca,#98aab7 58%,#8198a8);color:#21313d;text-shadow:none}
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){body.portrait-flow .theme-toggle{display:none}}

/* Reserve a separate footer slot for the phone theme toggle. */
@media(max-width:650px){
 body:not(.mobile-playing) .app .footer,
 body.portrait-flow:not(.mobile-playing) .app .footer,
 body:not(.mobile-playing) .app.grid-mode .footer{display:flex;justify-content:center;align-items:center;height:calc(36px + env(safe-area-inset-bottom));min-height:calc(36px + env(safe-area-inset-bottom));padding:0 10px env(safe-area-inset-bottom) 78px;gap:0;overflow:hidden}
 .app .footer .footer-credit{display:block;min-width:0;max-width:100%;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .app .footer .footer-projects{display:none}
 .theme-toggle{left:max(8px,env(safe-area-inset-left));height:36px;min-width:62px;padding:0 5px;font-size:10px;gap:4px}
 .theme-toggle svg{width:14px;height:14px}
 .app.grid-mode .grid-zoom-bar{position:static;left:auto;right:auto;bottom:auto;flex:none;display:flex;align-items:center;justify-content:center;width:100%;height:36px;min-height:36px;padding:0 12px;border-top:1px solid #999;background:linear-gradient(#e7e7e7,#b5b5b5);gap:8px}
 .app.grid-mode .grid-zoom-bar input{flex:1;width:auto;max-width:240px;min-width:40px}
 .app.grid-mode .grid-zoom-bar button{height:36px;width:32px}
 html[data-theme=dark] .app.grid-mode .grid-zoom-bar{background:linear-gradient(#363737,#282929);border-color:#181818}
}

/* Shared Bio and Contact pages live within the portfolio window. */
.bio-panel{display:none;position:relative;flex:1;min-height:0;align-items:center;justify-content:center;padding:40px 32px;overflow:auto;background:#f2f3f4;color:#303d50;text-align:center}
.contact-panel{position:relative}
body.info-view .workspace>:not(.info-panel){display:none!important}
body.bio-view .bio-panel{display:flex}
.bio-content{width:100%;max-width:250px;padding:20px 0}
.bio-content h1,.contact-content h1{font-size:13px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;margin:0 0 20px;color:#65727d}
.bio-content p{font-size:14px;line-height:1.8;margin:0;color:#52616c}
.info-tabs{display:none}
body.info-view .toolbar .transport,body.info-view .toolbar .right{visibility:visible}
body.info-view .player .track,body.info-view .player .sub{display:none}
body.info-view .player{display:grid;place-items:center}
body.info-view .player .name{width:100%;height:30px;font-size:18px;line-height:30px;text-align:center;overflow:hidden}
body.info-view .player .name .marquee-text{display:inline-block;animation:brand-drift 14s ease-in-out infinite!important;transform:none}
@keyframes brand-drift{0%,100%{transform:translateX(55px)}50%{transform:translateX(-55px)}}
body.info-view .transport-btn:disabled,body.info-view .sound-icon:disabled,body.info-view .inline-sound:disabled{cursor:default;opacity:.5}
body.info-view .volume-control input:disabled{opacity:.45;cursor:default}
body.info-view .sidebar [data-bio].active{background:linear-gradient(#a8c7eb,#6594cd 49%,#5383bd 50%,#3d6ba4);color:#fff;text-shadow:0 1px #41618a;font-weight:600}
html[data-theme=dark] .bio-panel{background:linear-gradient(#282929,#202121);color:#d5dfe7}
html[data-theme=dark] .bio-content p{color:#bbc5ca}
html[data-theme=dark] .bio-content h1,html[data-theme=dark] .contact-content h1{color:#9eacb5}
html[data-theme=dark] body.info-view .sidebar [data-bio].active{background:linear-gradient(#b7c2ca,#98aab7 58%,#8198a8);color:#21313d;text-shadow:none}
@media(max-width:650px){
 .bio-panel,.contact-panel{padding:62px 24px 28px}
 .bio-content p{font-size:14px;line-height:1.8}
 .info-tabs{position:absolute;top:12px;left:0;right:0;display:flex;justify-content:center;gap:8px}
 .info-tabs a{display:grid;place-items:center;min-width:72px;height:36px;padding:0 15px;border:1px solid #9ba4aa;border-radius:5px;text-decoration:none;font-size:12px;color:#445965;background:linear-gradient(#fff,#d3d9de)}
 body.bio-view .info-tabs a[href="/bio"],body.contact-view .info-tabs a[href="/contact-us"]{background:linear-gradient(#a8c7eb,#6594cd);color:#fff}
 html[data-theme=dark] .info-tabs a{background:linear-gradient(#454747,#292b2b);border-color:#666e72;color:#d5dfe7}
 html[data-theme=dark] body.bio-view .info-tabs a[href="/bio"],html[data-theme=dark] body.contact-view .info-tabs a[href="/contact-us"]{background:linear-gradient(#b7c2ca,#8198a8);color:#21313d}
}
@media(prefers-reduced-motion:reduce){body.info-view .player .name .marquee-text{animation:none!important;transform:none}}

.grid-preview-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .2s ease}
.grid-preview-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none;max-height:none;border:0;pointer-events:none;background:#000}
.grid-preview-playing .grid-preview-layer{opacity:1}
@media(prefers-reduced-motion:reduce){.grid-preview-layer{transition:none}}

.grid-native-preview{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}.grid-preview-native{transition:none}
/* Director joins the desktop credit columns; compact views retain their columns. */
@media(min-width:651px){
 .library th:first-child{width:36%}
 .library th:nth-child(2){width:6%}
 .library th:nth-child(3){width:15%}
 .library th:nth-child(6){width:18%}
 .library th:nth-child(4){width:14%}
 .library th:nth-child(5){width:11%}
 
 
}

/* iPhone/iPad loudness belongs to the OS; show an honest speaker toggle. */
.system-volume-note{display:none}
html.system-volume-only .volume-control input,html.system-volume-only .volume-control .volume-max{display:none!important}
html.system-volume-only #muteBtn svg{width:24px;height:24px;fill:currentColor;stroke:none}
html.system-volume-only #muteBtn .cross{display:none;fill:none;stroke:currentColor;stroke-width:2}
html.system-volume-only #muteBtn .wave{fill:none;stroke:currentColor;stroke-width:1.7}
html.system-volume-only #muteBtn[data-muted=true] .cross{display:block}
html.system-volume-only #muteBtn[data-muted=true] .wave{display:none}
html.system-volume-only body.mobile-playing .classic-mobile-controls .volume-control{justify-content:flex-end;max-width:180px}
html.system-volume-only body.mobile-playing .system-volume-note{display:block;max-width:100px;color:#606970;font-size:10px;line-height:14px;text-align:left}
html[data-theme=dark].system-volume-only body.mobile-playing .system-volume-note{color:#b7c2ca}
/* Dismiss a paused video as one composited layer, without a return tween. */
body.mobile-playing .app #flow{transform:translate3d(0,var(--mobile-dismiss-y,0px),0);transition:transform .22s cubic-bezier(.2,.7,.2,1);backface-visibility:hidden}
body.mobile-playing #flow.is-dragging{transition:none}
@media(prefers-reduced-motion:reduce){body.mobile-playing .app #flow{transition:none}}
/* Sound controls reflect confirmed player mute state, not slider position. */
#muteBtn svg,#mobileMute svg{fill:currentColor;stroke:none}
#muteBtn .cross,#mobileMute .cross{display:none;fill:none;stroke:currentColor;stroke-width:2}
#muteBtn .wave,#mobileMute .wave{fill:none;stroke:currentColor;stroke-width:1.7}
#muteBtn[data-muted=true] .cross,#mobileMute[data-muted=true] .cross{display:block}
#muteBtn[data-muted=true] .wave,#mobileMute[data-muted=true] .wave{display:none}
.volume-control[data-audio-muted=true] input{opacity:.45}

/* Keep phone chrome clear of notches and dynamic islands in edge-to-edge Safari. */
@media(max-width:650px) and (orientation:portrait){body:not(.mobile-playing) .app{padding-top:env(safe-area-inset-top,0px)}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){body:not(.mobile-playing) .toolbar{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.app.grid-mode .content-area,.app.list-mode .content-area{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}

/* Keep the running iframe below the existing mobile controls, without reparenting it. */
body.retained-mobile-player.mobile-playing .app #flow,
body.retained-mobile-player.mobile-playing #flow>.window,
body.retained-mobile-player.mobile-playing #videoarea{background:transparent}
body.retained-mobile-player.mobile-playing .app #flow{transition:none}

/* Lift the compact Bio and Contact blocks without changing their typography. */
.bio-content,.contact-content{transform:translateY(clamp(-64px,-7vh,-24px))}
@media(max-height:500px){.bio-content,.contact-content{transform:none}}

/* Artwork reflections yield to the real picture once the selected video is ready. */
.cover .reflection{transition:opacity .45s ease}
.cover.video-ready .reflection{opacity:0!important}
@media(prefers-reduced-motion:reduce){.cover .reflection{transition:none}}

/* Match the approved silver Cover Flow navigation on phones as well. */
@media(max-width:650px) and (orientation:portrait), (max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body:not(.mobile-playing) .app #flow .arrow{display:grid;place-items:center;padding:0;font-size:0;line-height:0;border:1px solid #8f989f;border-radius:50%;color:#56616a;background:linear-gradient(#fff,#d9dfe3 46%,#a5afb7);box-shadow:inset 0 1px #fff,0 1px 4px #0009}
 body:not(.mobile-playing) .app #flow .arrow .navigation-icon{display:block;width:18px;height:18px;fill:currentColor}
 html[data-theme=dark] body:not(.mobile-playing) .app #flow .arrow{background:linear-gradient(#505151,#303131);border-color:#686969;color:#e0e8ee;box-shadow:inset 0 1px #b8c6d044,0 1px 4px #0009}
}

/* Circular silver transport discs keep the existing mobile control row intact. */
@media(max-width:650px), (max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2){
 .toolbar .transport-btn,body.mobile-playing .classic-mobile-controls .transport-btn{position:relative;display:grid;place-items:center;padding:0;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none!important;filter:none;isolation:isolate}
 .toolbar .transport-btn:before,body.mobile-playing .classic-mobile-controls .transport-btn:before{content:'';position:absolute;left:50%;top:50%;width:var(--transport-disc,28px);height:var(--transport-disc,28px);transform:translate(-50%,-50%);border:1px solid #8c969d;border-radius:50%;background:linear-gradient(#fff,#e6eaed 40%,#bac3ca);box-shadow:inset 0 1px #fff,0 1px 2px #0003;z-index:-1}
 .toolbar .transport-btn.play{--transport-disc:36px}
 .toolbar .transport-btn.skip svg,body.mobile-playing .classic-mobile-controls .transport-btn.skip svg{width:18px;height:18px}
 .toolbar .transport-btn.play svg,body.mobile-playing .classic-mobile-controls .transport-btn.play svg{width:24px;height:24px}
 .toolbar .transport-btn svg,body.mobile-playing .classic-mobile-controls .transport-btn svg{fill:#606b73;stroke:#606b73}
 .toolbar .transport-btn.is-playing .pause-icon,body.mobile-playing .classic-mobile-controls .transport-btn.is-playing .pause-icon{fill:none;stroke-width:4}
 body.mobile-playing .classic-mobile-controls .transport-btn{--transport-disc:32px}
 body.mobile-playing .classic-mobile-controls .transport-btn.play{--transport-disc:42px}
 html[data-theme=dark] .toolbar .transport-btn:before,html[data-theme=dark] body.mobile-playing .classic-mobile-controls .transport-btn:before{background:linear-gradient(#4b4c4c,#2c2d2d);border-color:#666767;box-shadow:inset 0 1px #b2bec744,0 1px 2px #0007}
}
@media(max-width:650px){
 body:not(.mobile-playing) .toolbar .transport-buttons{gap:4px}
 body:not(.mobile-playing) .toolbar .transport-btn.skip{width:28px;min-width:28px}
 body:not(.mobile-playing) .toolbar .transport-btn.play{width:36px;min-width:36px}
 body:not(.mobile-playing) .toolbar .inline-sound{width:28px;min-width:28px}
}
@media(max-width:360px){
 body:not(.mobile-playing) .toolbar .transport-buttons{width:108px;gap:2.666px}
 body:not(.mobile-playing) .toolbar .transport-btn.skip{width:24px;min-width:24px;--transport-disc:24px}
 body:not(.mobile-playing) .toolbar .transport-btn.play{width:32px;min-width:32px;--transport-disc:32px}
 body:not(.mobile-playing) .toolbar .inline-sound{width:20px;min-width:20px}
 body:not(.mobile-playing) .toolbar .inline-sound svg{width:18px}
}

/* One SVG per arrow, centered without an anonymous fallback-text grid row. */
body:not(.mobile-playing) .app #flow .arrow{display:flex;align-items:center;justify-content:center}
body:not(.mobile-playing) .app #flow .arrow .navigation-icon{flex:none}

/* Approved Centered classic fullscreen dock: distinct controls, no stacked note. */
body.mobile-playing .classic-mobile-controls .transport-buttons{gap:12px;min-width:0;width:168px;height:64px;justify-content:center}
body.mobile-playing .classic-mobile-controls .transport-btn{width:44px;min-width:44px;height:56px;min-height:56px;--transport-disc:36px}
body.mobile-playing .classic-mobile-controls .transport-btn.play{width:56px;min-width:56px;--transport-disc:48px}
body.mobile-playing .classic-mobile-controls .transport-btn.skip svg{width:19px;height:19px}
body.mobile-playing .classic-mobile-controls .transport-btn.play svg{width:25px;height:25px}
body.mobile-playing .classic-mobile-controls .left.transport .volume-control{width:44px;min-width:44px;max-width:44px;height:64px;justify-content:center;gap:0;margin:0}
body.mobile-playing .classic-mobile-controls .left.transport .volume-control .sound-icon{width:44px;min-width:44px;height:44px;min-height:44px}
body.mobile-playing .classic-mobile-controls .left.transport .volume-control svg{width:23px;height:23px}
body.mobile-playing .classic-mobile-controls .volume-control input,body.mobile-playing .classic-mobile-controls .volume-control .volume-max,html.system-volume-only body.mobile-playing .classic-mobile-controls .system-volume-note{display:none!important}
@media(max-width:650px) and (orientation:portrait){
 body.mobile-playing .classic-mobile-controls{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:70px 64px;gap:8px;height:142px}
 body.mobile-playing .classic-mobile-controls .player{grid-column:1;grid-row:1;height:70px;padding:6px 9px;grid-template-rows:18px 14px 18px}
 body.mobile-playing .classic-mobile-controls .player .name{font-size:12px;line-height:18px}
 body.mobile-playing .classic-mobile-controls .player .sub{font-size:11px;line-height:14px}
 body.mobile-playing .classic-mobile-controls .player .time-label{font-size:10px;line-height:18px}
 body.mobile-playing .classic-mobile-controls .left.transport{display:grid;grid-column:1;grid-row:2;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px;width:100%;min-width:0;height:64px}
 body.mobile-playing .classic-mobile-controls .transport-buttons{grid-column:2;grid-row:1;justify-self:center}
 body.mobile-playing .classic-mobile-controls .left.transport .volume-control{grid-column:3;grid-row:1;justify-self:end}
}
@media(max-width:1000px) and (max-height:500px) and (min-aspect-ratio:3/2) and (orientation:landscape){
 body.mobile-playing .classic-mobile-controls{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:76px;align-items:center;gap:18px;height:76px}
 body.mobile-playing .classic-mobile-controls .left.transport{display:grid;grid-column:1;grid-row:1;grid-template-columns:168px 44px;align-items:center;gap:8px;width:220px;min-width:220px;height:76px}
 body.mobile-playing .classic-mobile-controls .player{grid-column:2;grid-row:1;width:100%;height:70px}
 body.mobile-playing .classic-mobile-controls .player .name{font-size:12px;line-height:18px}
 body.mobile-playing .classic-mobile-controls .player .sub{font-size:11px;line-height:15px}
}

/* Approved Compact silver desktop popup; the header owns the title. */
.desktop-player-controls{display:none}
body:not(.mobile-playing) #modal .windowbar{height:43px;min-height:43px;padding:0 12px;gap:12px}
body:not(.mobile-playing) #modal .windowfoot{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 38px;grid-template-rows:22px 48px;gap:6px 10px;padding:10px 12px;background:linear-gradient(#f1f1f1,#d2d2d2 45%,#adadad);border-top:1px solid #92999e;color:#4d5b64}
body:not(.mobile-playing) #modal .windowfoot>#modalPlay,body:not(.mobile-playing) #modal .windowfoot>#mobileMute{display:none}
body:not(.mobile-playing) #modal .mobile-playback-time{display:block;font-size:11px;line-height:22px;color:inherit;font-variant-numeric:tabular-nums;white-space:nowrap}
body:not(.mobile-playing) #modal #mobileElapsed{grid-column:1;grid-row:1;text-align:left}
body:not(.mobile-playing) #modal #mobileRemaining{grid-column:3;grid-row:1;text-align:right}
body:not(.mobile-playing) #modal #modalSeek{grid-column:2;grid-row:1;width:100%;min-width:0;height:22px;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:transparent;border:0}
body:not(.mobile-playing) #modal #modalSeek::-webkit-slider-runnable-track{height:7px;border:1px solid #8b969e;border-radius:4px;background:linear-gradient(#8b979f,#e5eaed)}
body:not(.mobile-playing) #modal #modalSeek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:15px;height:15px;margin-top:-5px;border:1px solid #8b969e;border-radius:50%;background:linear-gradient(#fff,#bdc8d0);box-shadow:0 1px 2px #0003}
body:not(.mobile-playing) #modal #modalSeek::-moz-range-track{height:5px;border:1px solid #8b969e;border-radius:4px;background:linear-gradient(#8b979f,#e5eaed)}
body:not(.mobile-playing) #modal #modalSeek::-moz-range-thumb{width:13px;height:13px;border:1px solid #8b969e;border-radius:50%;background:linear-gradient(#fff,#bdc8d0)}
body:not(.mobile-playing) #modal .desktop-player-controls{display:block;grid-column:1/3;grid-row:2;min-width:0}
body:not(.mobile-playing) #modal .desktop-player-controls .left.transport{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;min-width:0;gap:24px}
body:not(.mobile-playing) #modal .desktop-player-controls .transport-buttons{display:flex;align-items:center;gap:12px;height:48px;flex:none}
body:not(.mobile-playing) #modal .desktop-player-controls .transport-btn{position:relative;display:grid;place-items:center;filter:none;flex:none;padding:0;width:34px;height:34px;min-width:34px;border:1px solid #8c969d;border-radius:50%;background:linear-gradient(#fff,#e6eaed 40%,#bac3ca);box-shadow:inset 0 1px #fff,0 1px 2px #0004;color:#626e77}
body:not(.mobile-playing) #modal .desktop-player-controls .transport-btn.play{width:46px;height:46px;min-width:46px}
body:not(.mobile-playing) #modal .desktop-player-controls .transport-btn svg{width:19px;height:19px;fill:currentColor;stroke:currentColor}
body:not(.mobile-playing) #modal .desktop-player-controls .transport-btn.play svg{width:25px;height:25px}
body:not(.mobile-playing) #modal .desktop-player-controls .transport-btn.is-playing .pause-icon{fill:none;stroke-width:4}
body:not(.mobile-playing) #modal .desktop-player-controls .volume-control{position:static;display:flex;align-items:center;flex:none;gap:6px;width:126px;height:44px;margin:0}
body:not(.mobile-playing) #modal .desktop-player-controls .volume-control .sound-icon{display:grid;place-items:center;width:28px;min-width:28px;height:36px;padding:0;border:0;background:transparent;color:#697780}
body:not(.mobile-playing) #modal .desktop-player-controls .volume-control svg{width:22px;height:22px}
body:not(.mobile-playing) #modal .desktop-player-controls .volume-control .volume-max{display:none}
body:not(.mobile-playing) #modal .desktop-player-controls .volume-control input{width:90px;min-width:0;flex:1;height:22px;margin:0;accent-color:#aeb9c0}
body:not(.mobile-playing) #modal #fullscreen{grid-column:3;grid-row:2;align-self:center;display:grid;place-items:center;padding:8px;width:38px;height:38px;min-width:38px;border:1px solid #8f999f;border-radius:6px;background:linear-gradient(#fff,#c5cdd2);box-shadow:inset 0 1px #fff;color:#5b6871}
#fullscreen svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
body:not(.mobile-playing) #modal #playbackStatus:empty{display:none}
body:not(.mobile-playing) #modal #playbackStatus:not(:empty){position:absolute;left:12px;right:12px;bottom:calc(100% + 8px);padding:5px 8px;border-radius:3px;background:#000b;color:#fff;font-size:12px;text-align:center}
html[data-theme=dark] body:not(.mobile-playing) #modal .windowfoot{background:linear-gradient(#353636,#282929 55%,#222323);border-color:#181818;color:#c7d2da}
html[data-theme=dark] body:not(.mobile-playing) #modal #fullscreen{background:linear-gradient(#4b4c4c,#2c2d2d);border-color:#666767;color:#dce5ec;box-shadow:inset 0 1px #b2bec744}


/* Invisible pages keep their animation progress without spending frames. */
html[data-page-hidden] *{animation-play-state:paused!important}

/* Suppress only the poster whose valid live surface currently owns the visible image. */
.cover.has-live-preview .art-viewport{visibility:hidden}

/* Keep About navigation and text in separate rows on short phone viewports. */
@media(max-width:650px) and (max-height:620px){
 body.info-view .bio-panel,body.info-view .contact-panel{flex-direction:column;justify-content:flex-start;padding:12px 16px 24px}
 body.info-view .info-tabs{position:static;flex:none;margin:0 0 16px}
 body.info-view .bio-content,body.info-view .contact-content{transform:none;padding:0;flex:none}
}

/* Approved A1 Contact copy: lowercase, equal-size text and centered rows. */
.contact-panel .contact-content{width:min(100%,340px)}
.contact-panel .contact-content h1,.contact-panel .contact-row,.contact-panel .contact-label,.contact-panel .contact-content a{font-size:16px;line-height:1.8}
.contact-panel .contact-row{display:flex;gap:10px;justify-content:center;margin:0 0 14px}
.contact-panel .contact-label{color:#69727d}
.contact-panel #contactAddress{display:inline-block;border-bottom:0}
html[data-theme=dark] .contact-panel .contact-label{color:#bbc5ca}
