/* V479: music control placement only; preserve all V478 audio and navigation logic. */
/* Desktop: JS attaches the original music dock to body. The V458 rule places it
   bottom-left; it is no longer inside the navigation bar. */
@media (min-width:761px) {
  body[data-season-preset="sakura"] > .sakura-v458-music-dock {
    position:fixed;left:18px;bottom:16px;z-index:2200;
    width:auto;min-width:0;height:auto;padding:9px 15px;
    border-radius:999px;font-size:13px;line-height:1.2;
  }
}
@media (max-width:760px) {
  /* V417 gave the bell container a hard width of 36px and display:grid;
     that is why V478's second control wrapped underneath the bell. */
  body[data-oct30-preview="1"] > .navbar > .nav-inner > .ucp-quick-tools:has(> .sakura-v458-music-dock),
  body[data-oct30-preview="1"].mobile-shell-v374 > .navbar > .nav-inner > .ucp-quick-tools {
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
    justify-content:flex-start!important;gap:5px!important;
    width:77px!important;min-width:77px!important;height:36px!important;
    flex:0 0 77px!important;
  }
  body[data-season-preset="sakura"] .navbar .ucp-quick-tools > .sakura-v458-music-dock,
  body[data-season-preset="sakura"] .navbar .oct15-nav-tools > .sakura-v458-music-dock {
    position:relative!important;display:grid!important;place-items:center!important;
    flex:0 0 36px!important;box-sizing:border-box!important;
    inset:auto!important;width:36px!important;min-width:36px!important;
    height:36px!important;min-height:36px!important;
    margin:0!important;padding:0!important;
    font-size:17px!important;line-height:1!important;border-radius:11px!important;
    touch-action:manipulation!important;z-index:2!important;
  }
  /* Legacy shell also keeps two buttons on a single horizontal line. */
  .navbar .oct15-nav-tools:has(> .sakura-v458-music-dock) {
    display:flex!important;flex-flow:row nowrap!important;
    gap:5px!important;align-items:center!important;
  }
  body[data-season-preset="sakura"] .navbar .sakura-v458-music-dock:focus-visible {
    outline:2px solid #f9bddf;outline-offset:2px;
  }
}
