/* Interface around the canvas. Canvas geometry and sleeve/disc motion live in styles.css. */
:root {
  --ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ui-primary:#f5f5f7;
  --ui-secondary:#a1a1a6;
  --ui-tertiary:#85858b;
  --ui-surface:#1c1c1e;
  --ui-border:rgba(255,255,255,.10);
  --ui-header-height:80px;
}
.topbar,.player,.canvas-hud,.toast,.floating-cd-badge,.song-copy,.player-lyrics {
  font-family:var(--ui-font);
  -webkit-font-smoothing:antialiased;
}
.topbar {
  position:fixed; z-index:220; inset:0 0 auto; height:var(--ui-header-height);
  display:grid; grid-template-columns:minmax(140px,1fr) auto minmax(140px,1fr);
  align-items:center; column-gap:28px; padding:0 28px;
  color:var(--ui-primary); background:linear-gradient(#090909 20%,rgba(9,10,9,.94) 70%,rgba(9,10,9,0));
}
.header-identity { min-width:0; display:flex; flex-direction:column; gap:3px; }
.wordmark { width:max-content; color:var(--ui-primary); font-size:17px; line-height:21px; font-weight:600; letter-spacing:-.035em; text-decoration:none; }
.library-owner { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ui-secondary); font-size:12px; line-height:16px; letter-spacing:0; }
.library-nav { display:flex; align-items:center; gap:12px; min-width:0; }
.blend-nav { display:flex; align-items:center; gap:2px; min-width:0; max-width:min(54vw,680px); padding:3px; overflow-x:auto; scrollbar-width:none; border-radius:9px; background:rgba(118,118,128,.13); }
.blend-nav::-webkit-scrollbar { display:none; }
.blend-nav[hidden] { display:none; }
.blend-choice { flex:none; height:30px; padding:0 12px; border:0; border-radius:6px; background:transparent; color:var(--ui-secondary); font:500 13px/18px var(--ui-font); white-space:nowrap; }
.blend-choice:hover { color:var(--ui-primary); }
.blend-choice.is-active { color:var(--ui-primary); background:#363638; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.is-blend-mode .library-nav { display:none; }
.song-ownership { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#b6b6bd; font:500 9px/12px var(--ui-font); letter-spacing:.01em; }
.song-ownership[hidden] { display:none; }
.song.is-blend-shared::before { content:''; display:block; position:absolute; z-index:0; top:-24px; left:-24px; width:calc(100% + 48px); height:calc(var(--size) + 48px); border-radius:18px; background:radial-gradient(ellipse at center,rgba(248,249,252,.4) 22%,rgba(216,220,230,.27) 48%,rgba(156,164,180,.12) 68%,transparent 83%); filter:blur(13px); opacity:.85; pointer-events:none; transition:opacity .35s ease; }
.song.is-blend-shared .song-cover { box-shadow:0 0 20px 4px rgba(227,230,239,.48),0 0 54px 14px rgba(179,186,202,.23),0 28px 70px rgba(0,0,0,.38); }
.song.is-blend-shared .song-ownership { color:#e0e0e5; }
.song.is-blend-shared:hover::before,.song.is-blend-shared.is-selected::before { opacity:1; }
.song.is-blend-shared:hover .song-cover,.song.is-blend-shared.is-selected .song-cover { box-shadow:0 0 26px 6px rgba(234,236,243,.56),0 0 68px 18px rgba(184,191,206,.28),0 32px 80px rgba(0,0,0,.56); }
.blend-unavailable { position:fixed; z-index:30; top:50%; left:50%; width:min(360px,calc(100vw - 40px)); transform:translate(-50%,-50%); text-align:center; pointer-events:none; }
.blend-unavailable[hidden] { display:none; }
.blend-unavailable h1 { margin:0 0 10px; color:var(--ui-primary); font:500 22px/1.25 var(--ui-font); letter-spacing:-.035em; }
.blend-unavailable p { margin:0; color:var(--ui-secondary); font:400 13px/1.55 var(--ui-font); }
.view-switch { display:flex; gap:2px; padding:3px; border-radius:9px; background:rgba(118,118,128,.13); }
.nav-choice { border:0; border-radius:6px; height:30px; padding:0 13px; background:transparent; color:var(--ui-secondary); font-size:13px; line-height:18px; font-weight:500; white-space:nowrap; transition:background 150ms ease,color 150ms ease; }
.nav-choice.is-active { color:var(--ui-primary); background:#363638; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.nav-choice:not(.is-active):hover { color:var(--ui-primary); }
.playlist-control { position:relative; display:flex; align-items:center; min-width:0; }
.playlist-control select { appearance:none; min-width:88px; max-width:140px; height:36px; padding:0 24px 0 10px; border:0; border-radius:7px; background:transparent; color:var(--ui-secondary); font-size:13px; font-weight:500; text-overflow:ellipsis; }
.playlist-control select:hover { color:var(--ui-primary); background:rgba(255,255,255,.04); }
.playlist-control svg { position:absolute; right:6px; width:16px; height:16px; pointer-events:none; color:var(--ui-secondary); }
.header-actions { justify-self:end; min-width:0; display:flex; align-items:center; gap:10px; }
.topbar-playback { display:flex; align-items:center; gap:2px; padding:2px 4px; border-radius:9px; background:rgba(118,118,128,.14); }
.topbar-playback[hidden] { display:none!important; }
body:not(:has(.player:not([hidden]))) .topbar-playback { display:none!important; }
.topbar-btn { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--ui-secondary); transition:background 150ms ease,color 150ms ease; }
.topbar-btn svg { width:15px; height:15px; }
.topbar-btn:hover { background:rgba(255,255,255,.08); color:var(--ui-primary); }
.topbar-btn[aria-pressed='true'],.topbar-btn.is-active { background:#363638; color:var(--ui-primary); box-shadow:0 1px 3px rgba(0,0,0,.18); }
.search-box { display:flex; align-items:center; gap:7px; width:172px; height:34px; padding:0 10px; border:1px solid transparent; border-radius:8px; background:rgba(118,118,128,.16); color:var(--ui-secondary); }
.search-box:focus-within { border-color:#8e8e93; background:#252527; }
.search-box svg { width:16px; height:16px; flex:none; }
.search-box input { width:100%; min-width:0; padding:0; border:0; outline:0; background:transparent; color:var(--ui-primary); font:400 13px/18px var(--ui-font); }
.search-box input::placeholder { color:var(--ui-tertiary); opacity:1; }
.spotify-connect,.cta-button { height:34px; padding:0 12px; border:0; border-radius:8px; background:#303032; color:var(--ui-primary); font:500 12px/18px var(--ui-font); letter-spacing:0; white-space:nowrap; }
.spotify-connect:hover,.cta-button:hover { background:#414144; }
.viewer-cta { display:flex; }
.viewer-cta[hidden],.profile-bar[hidden] { display:none; }
.is-viewer-mode #importButton,.is-viewer-mode #authButton { display:none!important; }
.profile-bar { position:relative; }
.profile-bar summary { display:grid; place-items:center; width:34px; height:34px; list-style:none; cursor:pointer; color:var(--ui-secondary); border-radius:8px; }
.profile-bar summary::-webkit-details-marker { display:none; }
.profile-bar summary:hover,.profile-bar[open] summary { background:#303032; color:var(--ui-primary); }
.profile-bar summary svg { width:20px; height:20px; }
.account-popover { position:absolute; top:44px; right:0; display:flex; flex-direction:column; gap:4px; width:238px; padding:8px; border:1px solid var(--ui-border); border-radius:12px; background:#242426; box-shadow:0 8px 24px rgba(0,0,0,.35); }
.profile-slug { overflow:hidden; text-overflow:ellipsis; padding:8px; color:var(--ui-secondary); font:400 12px/18px var(--ui-font); }
.profile-action { width:100%; height:36px; padding:0 8px; text-align:left; border:0; border-radius:6px; color:var(--ui-primary); background:transparent; font:400 13px/18px var(--ui-font); }
.profile-action:hover { background:#3a3a3c; }
.profile-action[hidden] { display:none; }
:where(.topbar,.player,.canvas-hud,.topbar-playback) button:focus-visible,.topbar summary:focus-visible,.topbar select:focus-visible,.wordmark:focus-visible { outline:2px solid #d1d1d6; outline-offset:3px; }
.topbar input:focus-visible { outline:0; }
.topbar svg,.player svg,.zoom-control svg,.topbar-btn svg { fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* One legible hierarchy for music metadata. */
.song-copy { width:100%; opacity:1; text-shadow:0 1px 3px rgba(0,0,0,.45); }
.song-copy strong { color:var(--ui-primary); font-size:15px; line-height:1.3; font-weight:500; letter-spacing:-.015em; }
.song-copy small { margin-top:3px; color:var(--ui-secondary); font-size:13px; line-height:1.3; font-weight:400; }
.song-added-date { margin-top:5px; color:var(--ui-secondary); font:400 11px/1.3 var(--ui-font); text-transform:none; letter-spacing:0; }
.song-added-date::before { display:none; }
.song.is-suggested .song-copy strong { color:var(--ui-primary); }
.song.is-suggested .song-copy small { color:var(--ui-secondary); }
/* Standalone Spotify player embed with Apple Dynamic Island Lyrics expansion */
.player {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 32px));
  height: 80px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: #121214;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  transition: height 340ms cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 340ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms ease,
              box-shadow 340ms ease;
  will-change: height;
}

.player[hidden] {
  display: none;
}

.player.has-lyrics {
  height: 126px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.player-lyrics {
  width: 100%;
  height: 0;
  opacity: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.95), rgba(20, 20, 22, 0.98));
  border-bottom: none;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: height 340ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 260ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.player.has-lyrics .player-lyrics {
  height: 46px;
  opacity: 1;
  padding: 6px 18px 7px;
  border-bottom: none;
}

.player-lyric-current-wrap {
  width: 100%;
  max-width: 100%;
  height: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

.player-lyric-current-wrap.is-marquee {
  justify-content: flex-start;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.player-lyric-exit {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  font-family: var(--ui-font);
  font-size: 13.5px;
  line-height: 1.32;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.015em;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  animation: player-lyric-slide-out 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.player-lyric-current {
  margin: 0;
  padding: 0;
  font-family: var(--ui-font);
  font-size: 13.5px;
  line-height: 1.32;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.015em;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  transform: translate3d(0, 0, 0);
  transition: opacity 240ms ease, transform 240ms ease;
}

.player-lyric-current.is-entering {
  animation: player-lyric-bump 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.player-lyric-current.is-promoted-up {
  animation: player-lyric-promote-up 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity, color;
  transform-origin: center center;
}

.player-lyric-current.is-marquee {
  animation: apple-marquee-crawl var(--marquee-duration, 6.5s) cubic-bezier(0.38, 0, 0.62, 1) infinite;
  will-change: transform;
}

@keyframes player-lyric-slide-out {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.92);
  }
}

@keyframes player-lyric-promote-up {
  0% {
    opacity: 0.65;
    color: rgba(235, 235, 245, 0.52);
    font-weight: 400;
    transform: translate3d(0, 18px, 0) scale(0.82);
  }
  100% {
    opacity: 1;
    color: #f5f5f7;
    font-weight: 600;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes player-lyric-bump {
  from {
    opacity: 0;
    transform: translate3d(0, 4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes apple-marquee-crawl {
  0%, 22% {
    transform: translate3d(0, 0, 0);
  }
  72%, 84% {
    transform: translate3d(var(--marquee-distance, -60px), 0, 0);
  }
  98%, 100% {
    transform: translate3d(0, 0, 0);
  }
}

.player-lyric-next {
  margin: 2px 0 0 0;
  padding: 0;
  font-family: var(--ui-font);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(235, 235, 245, 0.52);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity 240ms ease;
}

.player-lyric-next.is-entering-up {
  animation: player-lyric-next-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes player-lyric-next-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.player-lyric-current:empty,
.player-lyric-next:empty {
  display: none;
}

.player .embed-wrap, #spotifyEmbed, .player iframe {
  width: 100%;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  margin: 0;
  border: 0;
  border-radius: 0 0 14px 14px;
  display: block;
  flex-shrink: 0;
}

.canvas-hud { position:fixed; z-index:130; right:24px; bottom:24px; }
.zoom-control { display:flex; gap:0; padding:2px; border:1px solid var(--ui-border); border-radius:10px; background:var(--ui-surface); }
.zoom-control button { display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--ui-secondary); }
.zoom-control button:hover { background:#303032; color:var(--ui-primary); }
.zoom-control svg { width:16px; height:16px; }
.zoom-control output { display:none; }
.floating-cd { top:calc(var(--ui-header-height) + 16px); right:24px; }
.floating-cd-badge { background:#242426; border-color:var(--ui-border); box-shadow:0 4px 16px rgba(0,0,0,.25); }
.floating-cd-title { font:500 13px/18px var(--ui-font); color:var(--ui-primary); }
.floating-cd-artist { margin-top:2px; font:400 12px/16px var(--ui-font); color:var(--ui-secondary); }
.floating-cd-equalizer { display:none; }
.toast { position:fixed; z-index:300; top:calc(var(--ui-header-height) + 12px); left:50%; max-width:calc(100% - 40px); padding:10px 16px; border:1px solid var(--ui-border); border-radius:10px; background:#28282a; color:var(--ui-primary); font:400 13px/18px var(--ui-font); text-align:center; opacity:0; pointer-events:none; transform:translate(-50%,-4px); transition:opacity 160ms ease,transform 160ms ease; }
.toast.is-visible { opacity:1; transform:translate(-50%,0); }

@media(max-width:1240px) {
  :root { --ui-header-height:116px; }
  .topbar { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:56px 44px; column-gap:16px; align-content:start; padding:8px 24px; }
  .header-identity { grid-column:1; grid-row:1; }
  .header-actions { grid-column:2; grid-row:1; }
  .library-nav { grid-column:1/-1; grid-row:2; justify-self:start; }
  .blend-nav { grid-column:1/-1; grid-row:2; justify-self:start; max-width:100%; }
  .search-box { width:180px; }
}
@media(max-width:760px) {
  body:has(.player:not([hidden])) .canvas-hud { bottom:106px; }
  body:has(.player.has-lyrics:not([hidden])) .canvas-hud { bottom:152px; }
  .canvas-hud { right:16px; bottom:16px; }
  .player { bottom:16px; }
}
@media(max-width:600px) {
  :root { --ui-header-height:108px; }
  .topbar { padding:6px 12px; column-gap:8px; grid-template-rows:50px 42px; }
  .wordmark { font-size:15px; }
  .library-owner { max-width:96px; font-size:11px; }
  .header-actions { gap:6px; }
  .search-box { width:clamp(96px, 30vw, 118px); height:32px; padding:0 8px; }
  .search-box input { font-size:12px; }
  .topbar-playback { position:fixed; z-index:221; left:12px; bottom:102px; padding:2px; gap:2px; box-shadow:0 4px 16px rgba(0,0,0,.28); }
  body:has(.player.has-lyrics:not([hidden])) .topbar-playback { bottom:148px; }
  .topbar-btn { width:28px; height:28px; border-radius:6px; }
  .topbar-btn svg { width:14px; height:14px; }
  .spotify-connect,.cta-button { height:32px; padding:0 9px; font-size:11px; }
  .library-nav { width:100%; gap:6px; }
  .blend-nav { width:100%; }
  .blend-choice { height:30px; padding-inline:10px; font-size:12px; }
  .nav-choice { height:30px; padding:0 10px; font-size:12px; }
  .playlist-control { margin-left:auto; }
  .playlist-control select { height:30px; font-size:12px; max-width:120px; padding-right:20px; }
  .player {
    width: calc(100vw - 24px);
    max-width: 390px;
    bottom: 12px;
    border-radius: 16px;
  }
  .player.has-lyrics {
    height: 126px;
    border-radius: 18px;
  }
  .player-lyrics {
    padding: 0 12px;
  }
  .player-lyric-current {
    font-size: 12.5px;
    letter-spacing: -0.01em;
  }
  .player-lyric-next {
    font-size: 11px;
  }
  .player-lyric-exit { font-size: 12.5px; }
  .zoom-control button { width:34px; height:34px; }
  .canvas-hud { right:12px; }
  body:has(.player:not([hidden])) .canvas-hud { bottom:102px; }
  body:has(.player.has-lyrics:not([hidden])) .canvas-hud { bottom:148px; }
  .floating-cd { right:14px; width:52px; height:52px; }
  .floating-cd-badge { right:64px; }
  #authButton { display:none!important; }
}
@media(max-width:390px) {
  .search-box { width:clamp(96px, 30vw, 118px); }
  .library-owner { max-width:110px; }
  .topbar { padding-inline:8px; column-gap:6px; }
  .header-actions { gap:4px; }
  .nav-choice { padding-inline:8px; font-size:11.5px; }
  .playlist-control select { max-width:105px; }
  .player { width: calc(100vw - 16px); bottom: 10px; }
  body:has(.player:not([hidden])) .canvas-hud { bottom:98px; }
  .topbar-playback { left:8px; bottom:98px; }
  body:has(.player.has-lyrics:not([hidden])) .canvas-hud { bottom:144px; }
  body:has(.player.has-lyrics:not([hidden])) .topbar-playback { bottom:144px; }
}
@media(prefers-reduced-motion:reduce) {
  .topbar *,.player *,.toast { transition:none; }
  .player-lyric-current.is-promoted-up,
  .player-lyric-exit,
  .player-lyric-next.is-entering-up {
    animation: none !important;
    transform: none !important;
  }
}

.player .embed-wrap::before { font:400 12px/18px var(--ui-font); color:var(--ui-secondary); }

/* ── Minimal Neutral Silver Toast (Bottom-Right Floating Pill) ── */
.apple-toast {
  position: fixed;
  z-index: 320;
  right: 20px;
  bottom: 84px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 7px;
  background: rgba(22, 22, 26, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(220, 225, 235, 0.18);
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #e5e5ea;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
              bottom 280ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, bottom;
}

body:has(.player.has-lyrics:not([hidden])) .apple-toast {
  bottom: 136px;
}

.apple-toast[hidden] {
  display: none;
}

.apple-toast.is-entering {
  animation: appleToastIn 340ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.apple-toast.is-dismissing {
  animation: appleToastOut 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appleToastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes appleToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.apple-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apple-toast-spotify {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.35);
}

.apple-toast-msg {
  font: 450 11.5px/15px -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--ui-font, sans-serif);
  letter-spacing: -0.01em;
  color: #e5e5ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-toast-action {
  font: 500 10.5px/13px -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--ui-font, sans-serif);
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 160ms ease;
}

.apple-toast-action svg {
  display: block;
  flex-shrink: 0;
}

.apple-toast-action:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.apple-toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  padding: 0;
  margin-left: -2px;
  flex-shrink: 0;
  transition: color 150ms ease, background 150ms ease;
}

.apple-toast-close:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
  .apple-toast {
    right: 12px;
    bottom: 96px;
    padding: 4px 7px 4px 6px;
    gap: 6px;
    max-width: calc(100vw - 24px);
  }
  body:has(.player.has-lyrics:not([hidden])) .apple-toast {
    bottom: 144px;
  }
  .apple-toast-msg {
    font-size: 11px;
    line-height: 14px;
  }
  .apple-toast-action {
    padding: 2px 6px;
    font-size: 10px;
  }
}
