/* Base */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#000;background:#fff;font-synthesis:none;--muted:#737373;--line:#e6e6e6;--column:560px}
*{box-sizing:border-box}
body{margin:0;font-size:15px;line-height:1.5;background:#fff}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.45}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #000;outline-offset:5px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
h1{font-size:28px;font-weight:500;letter-spacing:-.035em;line-height:1.25;margin:0}
h2{font-size:16px;font-weight:500;margin:0}
.muted,.hint{color:var(--muted)}
.hint{font-size:12px;line-height:1.6}
.status{padding:20px 0;color:var(--muted);font-size:13px}
.status:empty{display:none}

/* Page: a centred column, the header with tabs and account actions, the footer */
.shell{width:100%;max-width:calc(var(--column) + 80px);margin:auto;padding:0 40px;min-height:100vh;display:flex;flex-direction:column}
header{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:16px;padding:36px 0 58px}
header.create-header{flex-direction:row;align-items:center;justify-content:space-between}
.brand img{display:block;width:128px;height:54px;object-fit:contain}
nav{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0}
.tabs{display:flex;gap:24px;align-items:center}
.tabs a{font-size:14px}
.tabs a.active{font-weight:600}
.nav-actions{display:flex;align-items:center;gap:0;margin-left:auto;font-size:13px}
.nav-actions > * + *::before{content:"·";display:inline-block;margin:0 8px;color:var(--muted);font-weight:400}
.nav-actions .active{font-weight:600}
.nav-link{border:0;background:none;padding:0;font-size:14px;white-space:nowrap}
main{flex:1}
.intro{padding:12px 0 28px}
.intro .muted{margin-top:18px}
footer{text-align:center;padding:24px 0;margin-top:52px;color:var(--muted);font-size:12px}
footer p{margin:0;line-height:1.6}
footer a{text-decoration:underline}
footer a:hover{color:#000}

/* Buttons */
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;padding:5px 10px;border:1px solid #000;border-radius:2px;background:#000;color:#fff;font-size:14px;line-height:1.5;text-align:center;text-decoration:none}
.primary:hover:not(:disabled){background:#222;border-color:#222}
.secondary{border:0;background:none;padding:8px 0;color:inherit;text-decoration:underline;text-underline-offset:4px}
.text-button{font-size:12px;border:0;background:none;padding:8px 0}

/* "Last Radio v2 is here", edge to edge above the page, and What's new */
.v2-notice{margin:0;padding:10px 16px;background:#000;color:#fff;text-align:center;font-size:13px;line-height:1.5}
.v2-notice a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.whats-new ul{margin:28px 0 36px;padding:0;list-style:none}
.whats-new li{padding:14px 0;border-top:1px solid var(--line);font-size:15px}
.whats-new li a{text-decoration:underline;text-underline-offset:3px}

/* Landing */
.landing .shell{min-height:100svh}
.landing-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 0;min-height:0}
.landing-logo{width:360px;max-width:100%;height:auto;margin-bottom:88px}
.landing-description{text-align:center;font-size:15px;margin:0 0 32px}
.nts-logo-inline{height:1.3em;width:auto;vertical-align:middle;display:inline-block;margin:0 .15em}
.landing-actions{display:flex;align-items:center;gap:28px}
.landing-actions a{font-size:14px;text-align:center}
.landing footer{margin-top:auto}

/* Episode list, grouped by date; dividers sit only between items of a group */
.episodes{display:block}
.date-group{margin:0 0 34px}
.date-heading{font-size:12px;color:var(--muted);font-weight:400;margin:0 0 16px}
.episode{display:flex;align-items:center;gap:20px;width:100%;padding:10px 0;margin:0 0 12px;border:0;background:none;text-align:left;color:#000;border-radius:3px}
.episode:hover{text-decoration:none}
.episode + .episode{border-top:1px solid var(--line);border-radius:0;padding-top:22px}
.episode-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.episode-heading{display:flex;align-items:baseline;min-width:0}
.episode-title{display:block;font-size:16px;font-weight:400;letter-spacing:-.02em;line-height:1.35;overflow-wrap:anywhere}
.genres{font-size:12px;color:var(--muted);line-height:1.5}
.artwork{display:block;flex-shrink:0;width:52px;height:52px;background:#f4f4f4;overflow:hidden}
.artwork img{display:block;width:100%;height:100%;object-fit:cover}
.episode .artwork{width:88px;height:88px}
.load-more{display:block;width:100%;margin:12px 0 0;padding:16px;border:0;background:none;font-size:13px}
/* Only the show that is audibly playing shows a small animated wave. */
.playing-wave{display:none;flex:0 0 10px;width:10px;height:10px;margin-right:6px;align-self:center}
.playing-wave svg{display:block;width:10px;height:10px;fill:currentColor}
.episode[aria-pressed="true"] .playing-wave{display:block}
.playing-wave rect{transform-box:fill-box;transform-origin:center;animation:playing-wave 440ms cubic-bezier(.45,0,.55,1) infinite alternate}
.playing-wave rect:nth-child(2){animation-duration:370ms;animation-delay:-230ms}
.playing-wave rect:nth-child(3){animation-duration:510ms;animation-delay:-390ms}

/* Feed editor: the search line is the top edge of the results panel, whose status and Done stay pinned */
.editor{width:100%;margin-bottom:20px}
.search-wrap{position:relative;width:100%}
.editor input[type=search]{width:100%;border:0;border-bottom:1px solid #000;background:#fff;padding:14px 0;color:#000;border-radius:0;font-size:15px;outline-offset:5px}
.editor input[type=search]:focus-visible{outline:none;box-shadow:none;border-bottom:1px solid #000}
.editor input::placeholder{color:var(--muted)}
.search-dropdown{position:absolute;top:calc(100% - 1px);left:0;right:0;z-index:10;max-height:430px;overflow:auto;padding:0 16px 8px;border:1px solid var(--line);border-top:1px solid #000;border-radius:0;background:#fff;box-shadow:none}
.search-dropdown #search-status{font-size:12px;padding:8px 0;color:var(--muted)}
.search-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;background:#fff;border-bottom:1px solid var(--line)}
.search-bar #search-status{flex:1;min-width:0;padding:0}
#search-done{flex-shrink:0;border:0;background:none;padding:6px 0 6px 16px;color:#000;font-size:14px}
.selection,.result{display:flex;align-items:center;gap:14px;padding:8px 0;min-height:60px}
button.result{width:100%;border:0;border-radius:0;background:#fff;text-align:left;cursor:pointer}
button.result:hover,button.result:focus-visible{background:#f7f7f7;text-decoration:none}
.result .genre-placeholder{border-radius:50%;background:var(--line)}
.result-added{flex-shrink:0;color:var(--muted);font-size:12px}
.result.added .result-added{color:#000;font-weight:600}
.item-label{flex:1;min-width:0}
.item-name{font-size:14px;overflow-wrap:anywhere}
.item-kind{font-size:11px;color:var(--muted);margin-top:3px}
.selection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:40px 0 28px}
.selection-heading .muted{font-size:12px}
.selection-group{margin:0 0 28px}
.selection-group h3{font-size:13px;font-weight:500;margin:0 0 12px}
.selection-group > .selection + .selection{border-top:1px solid var(--line)}
.selection .item-kind{display:none}
.result button,.selection button{border:0;background:none;padding:10px 0 10px 12px;font-size:12px;min-height:40px;flex-shrink:0}
.selection button{color:var(--muted)}
#selections:empty:after{content:"Nothing followed yet. Search above to get started.";display:block;padding:10px 0 24px;color:var(--muted);font-size:13px}
.save-row{display:flex;align-items:center;gap:24px;margin-top:28px}
.save-row a{font-size:13px;text-decoration:underline;text-underline-offset:4px}
#save-status{font-size:13px}

/* Account: email, then a four-digit code */
.auth-page{width:100%;padding:8px 0 40px}
.auth-page h1{font-size:18px;font-weight:500;letter-spacing:0}
.auth-page .muted{font-size:14px;margin:16px 0 28px}
.auth-page form{width:100%}
.auth-page label{display:block;font-size:13px;margin:24px 0 4px}
.auth-page input{display:block;width:100%;border:0;border-bottom:1px solid #000;background:#fff;padding:12px 0;border-radius:0;font-size:16px}
.auth-page #account-email:focus-visible{outline:none}
.auth-submit{display:block;font-size:14px;margin-top:18px}
.auth-actions{display:flex;gap:24px;margin-top:22px}
.auth-page .status{padding:8px 0}
#code-digits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;width:100%}
.auth-page #code-digits .code-digit{width:100%;font-size:22px;text-align:center;letter-spacing:0;padding:14px 0}
.code-digit::placeholder{color:#b9b9b9}
.code-digit:focus::placeholder{color:transparent}
.auth-page .code-help{font-size:13px;color:var(--muted);line-height:1.7;margin:20px 0 0;overflow-wrap:anywhere}
.code-help .text-button{font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:0;margin-left:8px}

/* Player, fixed to the bottom; the page reserves exactly its height */
body.has-player,body.tracks-open{padding-bottom:var(--player-height,160px)}
body.has-player .shell{min-height:calc(100svh - var(--player-height,160px))}
body.has-player footer{display:none}
/* The transport's cover and play columns set two lines the headings and tracklist follow on desktop:
   labels and times end at the cover's edge, track titles start where the show name starts. */
.player{--cover:64px;--play-column:24px;--transport-gap:10px;--title-start:calc(var(--cover) + var(--play-column) + 2 * var(--transport-gap));position:fixed;bottom:0;left:50%;width:calc(var(--column)*1.1);max-width:calc(100% - 32px);transform:translateX(-50%);z-index:20;border:1px solid var(--line);border-bottom:0;background:#fff;padding-bottom:env(safe-area-inset-bottom)}
.player-head{display:flex;border-bottom:1px solid var(--line);padding:0 27px;margin:auto;min-height:62px;align-items:center;gap:16px}
.tracks-open .player-head{display:none}
.player-label{color:var(--muted);font-size:11px;white-space:nowrap}
/* Track titles line up in the folded heading, the expanded heading and the list; the playlist action stays visible. */
#track-toggle{flex:1;min-width:0;display:flex;align-items:center;border:0;background:none;text-align:left;padding:16px 0}
#close-tracks{border:0;background:none;display:flex;align-items:center;min-width:0;width:100%;text-align:left;padding:4px 0;font-size:13px}
#track-toggle,#close-tracks{gap:0}
#track-toggle .player-label,#close-tracks .player-label{flex:0 0 var(--cover);margin-right:calc(var(--title-start) - var(--cover));text-align:right}
#now-playing{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
#playing-show{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#toggle-label,#collapse-label{flex-shrink:0;white-space:nowrap;margin-left:auto;padding-left:8px;color:var(--muted);font-size:12px;line-height:1.4}

/* Tracklist: each row is a keyboard and touch target; time, then the wave centred before the title. */
#track-panel{position:relative;border-bottom:1px solid var(--line)}
.track-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;padding:12px 27px;border-bottom:1px solid var(--line)}
#track-scroll{max-height:36vh;overflow-y:auto;overscroll-behavior:contain;padding:12px 27px}
#track-status{font-size:12px;color:var(--muted);margin:0 0 8px}
#track-status:empty{display:none}
#tracks{padding:0;list-style:none;margin:0}
#tracks li{display:block;padding:0;font-size:12px}
#tracks li.current{font-weight:650}
#tracks li.past{color:var(--muted);opacity:.7}
#tracks li.past:hover{opacity:1}
#tracks .track-action{display:grid;grid-template-columns:var(--cover) calc(var(--title-start) - var(--cover)) minmax(0,1fr);align-items:start;width:100%;min-height:36px;padding:6px 0;border:0;background:none;text-align:left;font:inherit;color:inherit}
#tracks .time{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}
#tracks .track-marker{display:block;visibility:hidden;justify-self:center;align-self:start;margin:4px 0 0}
#tracks li.current .track-marker{visibility:visible}
.player:not(.is-playing) #tracks .track-marker rect{animation-play-state:paused}
#tracks .track-title{overflow-wrap:anywhere}
.track-toast{position:absolute;left:50%;bottom:16px;z-index:2;transform:translateX(-50%);padding:7px 11px;background:#111;color:#fff;font-size:12px;white-space:nowrap;pointer-events:none}

/* Transport: cover, play, times and timeline. The SoundCloud iframe stays mounted as the audio engine. */
.player-transport{position:relative}
.player-transport:has(#custom-transport[hidden]){padding-top:36px}
.player-transport #close-player{position:absolute;top:12px;right:20px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none;font-size:22px;line-height:1}
#widget{max-width:var(--column);margin:auto}
#widget iframe{display:block;border:0;width:100%;height:120px}
#widget.custom-engine{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
#widget.custom-engine iframe{width:300px;height:120px}
/* SoundCloud's own player appears only as a fallback. SoundCloud renders its mini player at 20px;
   it is zoomed so its play button is a comfortable tap target. Transforms don't take layout space, so the
   iframe is laid out at 1/zoom width and the margin reserves the extra height. */
.player.native-audio #widget,.player-transport:has(#custom-transport:not([hidden])) #widget:not(.custom-engine){--mini-zoom:2;padding:0 16px 12px}
.player.native-audio #widget iframe,.player-transport:has(#custom-transport:not([hidden])) #widget:not(.custom-engine) iframe{width:calc(100% / var(--mini-zoom));height:20px;margin-bottom:calc(20px * (var(--mini-zoom) - 1));transform:scale(var(--mini-zoom));transform-origin:0 0}
#custom-transport{display:grid;grid-template-columns:var(--cover) var(--play-column) 44px minmax(0,1fr) 44px;grid-template-rows:18px 28px 18px;column-gap:var(--transport-gap);row-gap:4px;align-items:center;padding:16px 27px;margin:auto}
.timeline-row{display:contents}
#player-artwork{width:64px;height:64px;grid-column:1;grid-row:1 / 4;align-self:center}
#transport-show{grid-column:3 / 6;grid-row:1;font-size:13px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center;margin-right:28px}
#transport-play{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:center;align-self:center;width:24px;height:28px;min-height:28px;padding:0;border:0;background:none;flex-shrink:0;font-size:16px;text-align:left}
#transport-play span{display:block;width:12px;height:14px;font-size:0;position:relative}
#transport-play span:before{content:"";display:block;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid #000;margin-left:1px}
#transport-play[aria-label="Pause"] span:before{border:0;width:4px;height:14px;background:#000;margin:0;box-shadow:8px 0 0 #000}
.time-label{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#elapsed{grid-column:3;grid-row:2;min-width:0}
#duration{grid-column:5;grid-row:2;min-width:0}
#timeline{--progress:0%;grid-column:4;grid-row:2;appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:28px;margin:0;cursor:pointer;background:transparent}
#timeline::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,#000 0 var(--progress),#dedede var(--progress) 100%);border-radius:1px}
#timeline::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;margin-top:-5px;border:0;border-radius:50%;background:#000}
#timeline::-moz-range-track{height:2px;background:#dedede}
#timeline::-moz-range-progress{height:2px;background:#000}
#timeline::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#000}
#timeline:disabled{opacity:.4;cursor:default}
.transport-meta{grid-column:3 / 6;grid-row:3;min-width:0;display:flex;align-items:center;gap:12px;min-height:18px;font-size:10px;color:var(--muted)}
#audio-credit{order:3;margin-left:auto;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
#transport-status{margin-left:0}
#show-original{border:0;background:none;color:inherit;font-size:10px;padding:0;white-space:nowrap}

@keyframes playing-wave{0%{transform:scaleY(.2)}45%{transform:scaleY(.65)}100%{transform:scaleY(1)}}
@keyframes audio-loading{to{transform:rotate(360deg)}}

/* Phones */
@media(max-width:640px){
  body{font-size:1rem}
  h1{font-size:26px}
  .shell{padding:0 24px;max-width:calc(var(--column) + 48px)}
  header{flex-wrap:wrap;gap:12px;padding:22px 0 38px}
  .brand img{width:106px;height:44px}
  nav{flex-wrap:wrap;gap:12px;margin-left:0}
  .tabs{gap:12px}
  .tabs a,.nav-link,.nav-actions{font-size:.875rem}
  .intro{padding:12px 0 24px}
  .text-button,#save,.save-row a,.result button,.selection button,.load-more{font-size:.875rem}
  .landing-logo{width:270px;margin-bottom:68px}
  .landing-description{font-size:1rem;line-height:1.5}
  .landing-actions{gap:24px}
  .landing-actions a{font-size:.9375rem}
  /* Episodes: dividers run edge to edge. */
  .date-group{margin-bottom:24px}
  .date-heading{font-size:.8125rem;line-height:1.45;margin-bottom:8px}
  .episode{gap:16px;margin-bottom:10px}
  .date-group .episode{position:relative;gap:12px;min-height:80px;padding:8px 0;margin:0;border:0;border-radius:0}
  .date-group .episode + .episode::before{content:"";position:absolute;top:0;left:50%;width:100vw;transform:translateX(-50%);border-top:1px solid var(--line);pointer-events:none}
  .artwork{width:44px;height:44px}
  .episode .artwork{width:72px;height:72px}
  .date-group .episode .artwork{width:64px;height:64px}
  .episode-title{font-size:clamp(1rem,3.4vw,1.0625rem);line-height:1.4;letter-spacing:-.01em}
  .genres{font-size:.8125rem;line-height:1.45}
  .editor input[type=search]{font-size:16px}
  .search-dropdown{padding:0 12px 8px;max-height:60vh}
  #search-done{min-height:44px;font-size:15px}
  /* Searching fills the screen above the keyboard (sized from visualViewport); the page behind stays put. */
  body.searching{overflow:hidden}
  body.searching .search-wrap{position:fixed;left:0;right:0;top:var(--visible-top,0px);height:var(--visible-height,100dvh);z-index:30;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 8px) 16px 0;background:#fff}
  body.searching .search-dropdown{position:static;flex:1;min-height:0;max-height:none;padding:0;border:0;overscroll-behavior:contain}
  .selection,.result{gap:12px}
  .item-name{font-size:1rem;line-height:1.4}
  .item-kind{font-size:.8125rem}
  .selection-group h3{font-size:.875rem}
  .result button,.selection button{min-height:44px}
  .auth-page h1{font-size:1.25rem;line-height:1.3}
  .auth-page .muted{font-size:.9375rem;line-height:1.5}
  .auth-page label,.auth-page .code-help,.code-help .text-button{font-size:.875rem}
  /* The player spans the screen; the tracklist opens full screen, keeping the transport exactly where it was. */
  body.tracks-open{padding-bottom:0}
  body.tracks-open .shell{min-height:100svh}
  .player{left:0;right:auto;width:100%;max-width:none;transform:none;border-left:0;border-right:0;border-radius:0;overflow:visible}
  html.ios-standalone .player{padding-bottom:max(32px,env(safe-area-inset-bottom))}
  body.tracks-open .player{inset:0;width:100%;height:100dvh;max-width:none;transform:none;display:flex;flex-direction:column;border:0;border-radius:0;overflow:visible}
  body.tracks-open #track-panel{flex:1;min-height:0;display:flex;flex-direction:column;border-bottom:0}
  body.tracks-open #track-scroll{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
  body.tracks-open .player-transport{flex:0 0 auto;border-top:1px solid var(--line)}
  .player-head{min-height:46px;padding:0 16px}
  .player-label{font-size:.75rem}
  #track-toggle{padding:10px 0}
  #track-toggle .player-label{flex-basis:40px}
  #track-toggle .player-label,#close-tracks .player-label{flex:0 0 auto;margin-right:8px}
  #now-playing{font-size:12px}
  #now-playing,#playing-show{font-size:.875rem}
  .track-heading{padding:10px 24px}
  .track-heading,#tracks li,#track-status{font-size:.8125rem}
  #tracks li{line-height:1.5}
  #tracks .track-action{grid-template-columns:58px 10px minmax(0,1fr);column-gap:6px;min-height:44px;padding:8px 0}
  #tracks .time{text-align:right}
  #tracks .track-marker{margin-top:5px}
  #track-scroll{padding:12px 24px;max-height:32vh}
  /* A single compact transport row; the source credit only when the original player is offered. */
  .player-transport:has(#custom-transport:not([hidden])){display:flex;align-items:stretch}
  .player-transport #close-player{top:10px;right:17px}
  .player-transport:has(#custom-transport:not([hidden])) #close-player{position:static;order:2;flex:0 0 44px;width:44px;height:64px;align-self:flex-start;font-size:28px}
  .player-transport:has(#custom-transport:not([hidden])):has(#widget:not(.custom-engine)){flex-wrap:wrap}
  .player-transport:has(#custom-transport:not([hidden])):has(#widget:not(.custom-engine)) #widget{order:3;flex:0 0 100%;width:100%}
  #widget iframe{height:110px}
  #custom-transport{order:1;flex:1;min-width:0;width:100%;margin:0;padding:0;grid-template-columns:64px 38px max-content minmax(0,1fr) max-content;grid-template-rows:64px;column-gap:8px;row-gap:0}
  #custom-transport:has(#show-original:not([hidden])){grid-template-rows:64px auto}
  #player-artwork{grid-row:1;align-self:stretch}
  #transport-show,#audio-credit,#transport-status{display:none}
  #transport-play{grid-row:1;width:38px;height:44px;min-height:44px;justify-self:center}
  #transport-play span{width:18px;height:20px}
  #transport-play span:before{border-top-width:10px;border-bottom-width:10px;border-left-width:17px}
  #transport-play[aria-label="Pause"] span:before{width:5px;height:20px;box-shadow:11px 0 0 #000}
  #elapsed{grid-row:1;margin-right:3px}
  #duration{grid-row:1;min-width:44px;text-align:right}
  #timeline{grid-row:1}
  .time-label{font-size:.75rem}
  .transport-meta{display:none}
  #custom-transport:has(#show-original:not([hidden])) .transport-meta{display:flex;grid-column:2 / -1;grid-row:2;padding:0 8px 8px}
}

/* Small phones: no duration, a narrower cover */
@media(max-width:360px){
  #custom-transport{grid-template-columns:56px 38px max-content minmax(0,1fr);grid-template-rows:56px;column-gap:6px}
  #custom-transport:has(#show-original:not([hidden])){grid-template-rows:56px auto}
  #player-artwork{width:56px;height:56px}
  #duration{display:none}
  .player-transport:has(#custom-transport:not([hidden])) #close-player{height:56px}
}

/* While audio loads, the play button becomes a spinner, whatever its size (so this comes after the phone rules). */
#transport-play[aria-busy="true"] span{width:18px;height:18px}
#transport-play[aria-busy="true"] span:before{box-sizing:border-box;width:18px;height:18px;margin:0;border:2px solid var(--line);border-top-color:var(--muted);border-radius:50%;background:none;box-shadow:none;animation:audio-loading .8s linear infinite}

@media(prefers-reduced-motion:reduce){
  .playing-wave rect,#transport-play[aria-busy="true"] span:before{animation:none}
}
