@media (prefers-color-scheme: light) {
  :root {
    --bg-rgb: 245,245,245;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-rgb: 25,25,25;
  }
}
html body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
img, svg {
  display: block;
}
.PlayerBar {
  background-color: rgb(var(--bgbg-rgb));
  border-top: 1px solid var(--fg-plushalf);
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
.PlayerBarControls {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.MainContainer {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.Main {
  min-height: 0;
  display: flex;
  background-color: var(--bgbg);
  gap: 10px;
  flex-grow: 1;
}
.Pane {
  overflow-y: auto;
  padding: 10px;
  background-color: var(--bg);
}
.CenterPane {
  overflow-y: auto;
  padding: 10px;
  flex-grow: 3;
  background-color: var(--bg);
}
.PlayingViewPane {
  padding: 10px;
  flex-grow: 1;
  background-color: var(--bg);
  overflow-y: auto;
  flex-basis: 200px;
}
.PlayerBarSongDetails {
  display: flex;
  gap: 10px;
  align-items: center;
}
.SongTitle {
  font-weight: bold;
  text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.SongArtist {
  color: var(--fg-subtext);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.AutoColor {
  fill: var(--fg);
}
#SongList {
  display: grid;
  grid-template-columns: repeat(auto-fill,200px);
  gap: 10px;
  justify-content: center;
}
.Song {
  background-color: var(--bgbg);
  padding: 10px;
  box-shadow: 0 0 5px var(--fg-base);
  border-radius: 20px;
  min-width: 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--fg-plushalf);
}
.SongImage {
  width: 100%;
}
#PlayerBarSongImg {
  overflow: hidden;
  background-color: var(--fg-base);
  width: 3em;
  height: 3em;
  border-radius: 5px;
  flex-shrink: 0;
}
#PlayerBarSongImg > img {
  width: 3em;
}
.SongDetails {
  min-width: 0;
  flex-grow: 1;
}
.SongDetailsContainer {
  display: flex;
  gap: 10px;
}
.SongPlayButton, .QueueRemoveButton, .SongAddToQueueButton, .SongPlayNextButton {
  width: 40px;
  height: 40px;
  padding: 10px;
  background-color: var(--fg-base);
  border-radius: 10px;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
}
.PlayPause, .Previous, .Next {
  padding: 10px;
  width: 48px;
  height: 48px;
}
.PlayerBarLeft {
  display: flex;
  justify-content: left;
}
.PlayerBarCenter {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  gap: 20px;
}
.PlayerBarRight {
  display: flex;
  justify-content: right;
}
.IconButton {
  padding: 10px;
  background-color: transparent;
  border: 2px solid var(--fg-base);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: background-color 0.1s;
}
.IconButton:hover {
  background-color: var(--fg-base);
}
.IconButton:active {
  background-color: var(--fg-double);
}
.IconButton.Active {
  background-color: var(--fg-plushalf);
}
.CurrentSongLyrics {
  white-space: pre-line;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.5;
}
.Loading {
  font-weight: bold;
}
.SongImageContainer {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--fg-base);
}
.SongOtherOptions {
  opacity: 0;
  position: absolute;
  inset: 0px;
  transition: backdrop-filter 0.5s, opacity 0.5s;
  padding: 40px 10px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  gap: 10px;
}
.SongOtherOptions:hover {
  backdrop-filter: blur(20px);
  opacity: 1;
}
.OverlayButton {
  border: none;
  border-radius: 50px;
  background-color: rgba(25,25,25,0.3);
  transition: background-color 0.5s;
  flex-grow: 1;
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
}
.OverlayButton:hover {
  background-color: rgba(25,25,25,0.8);
}
.OverlayButton:active {
  opacity: 0.5
}
* {
  scrollbar-color: rgba(var(--fg-rgb),0.5) var(--fg-thin);
}
.RightPaneSongImageContainer {
  display: flex;
  padding: 20px;
  flex-direction: column;
  align-items: center;
}
#RightPaneSongImage {
  background-color: var(--fg-base);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.6);
}
#RightPaneSongImage > img {
  width: 100%;
}
.ExpanderContainer {
  display: flex;
}
#RightPaneOptions {
  display: flex;
  overflow: hidden;
  transition: max-width 0.5s;
  max-width: 117px;
}
#RightPaneOptions.ExpanderCollapsed {
  max-width: 0px;
}
.ExpanderOptions {
  display: flex;
  border: 2px solid var(--fg-base);
  border-radius: 10px;
  overflow: hidden;
  margin-left: 5px;
  flex-shrink: 0;
}
.MultiOptionButton {
  padding: 10px;
  background-color: transparent;
  width: 36px;
  height: 36px;
  border-radius: 0px;
  transition: background-color 0.1s;
  flex-shrink: 0;
}
.MultiOptionButton:hover {
  background-color: var(--fg-base);
}
.MultiOptionButton.Active {
  background-color: var(--fg-plushalf);
}
.PlayQueue {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.QueueSong {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
}
.QueueSong .SongImageContainer {
  flex-shrink: 0;
}
.QueueSong .SongImage {
  height: 3em;
  width: auto;
}
.TopBar {
  background-color: var(--bgbg);
  padding: 10px;
  border-bottom: 1px solid var(--fg-plushalf);
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
  app-region: drag;
  display: flex;
}
.Scroll {
  overflow-y: auto;
  height: 100%;
}
/*
.TopBar {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 100%;
  background-color: rgba(var(--bgbg-rgb),0.6);
  backdrop-filter: blur(20px);
}
.PlayerBar {
  position: absolute;
  bottom: 0px;
  width: 100%;
  background-color: rgba(var(--bgbg-rgb),0.6);
  backdrop-filter: blur(20px);
}
.CenterPane, #RightPane {
  padding-top: 68px;
  padding-bottom: 79px;
}
*/

.MCBackground {
  height: 100%;
  background-size: cover;
  background-position: center;
}
.MCMain {
  height: 100%;
  display: flex;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background-color: rgba(var(--bg-rgb),0.6);
  app-region: drag;
}
.MCImageContainer {
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.MCImageContainer > .CurrentSongImage {
  height: 100%;
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.6);
  border-radius: 8%;
  overflow: hidden;
  background-color: var(--fg-base);
}
.MCImageContainer > .CurrentSongImage > img {
  height: 100%;
}
.MCDetails {
  flex-grow: 1;
  padding: 20px;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
}
.MCDetails > .SongDetailsText {
  font-size: 1.6em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.MCDetails > .PlayerBarControls {
  align-items: center;
  app-region: no-drag;
}
.MCDetails > .PlayerBarControls > button {
  border-radius: 50px;
  padding: 12px;
  width: 50px;
  height: 50px;
}
.MCDetails > .PlayerBarControls > button.PlayPause {
  height: 60px;
  width: 60px;
  padding: 16px;
}

/*
.SongArtist {
  color: var(--palette-2);
}
.PlayerBarControls > button {
  background-color: var(--palette-1);
}
.PlayerBar, .TopBar {
  background-color: var(--palette-3);
}
.CenterPane, #RightPane {
  background-color: var(--palette-4);
}
.Song {
  background-color: var(--palette-3)
}
.Main {
  background-color: var(--palette-3);
}
*/

.SearchBar > input {
  color: var(--fg);
  background-color: var(--fg-base);
  border-radius: 50px;
  font-size: 1em;
  border: none;
  padding: 10px 20px;
  width: 100%;
  outline-width: 1px;
  outline-color: white;
}
.SearchBar > input:focus {
  outline: 2px solid var(--fg-base);
  outline-offset: -2px;
}
.SearchBar {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.SearchResults {
  display: none;
  position: absolute;
  background-color: var(--bg);
  top: calc(100% + 5px);
  z-index: 1;
  border-radius: 30px;
  border: 1px solid var(--fg-plushalf);
  height: 100px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 10px;
  width: 600px;
  max-width: calc(100vw - 20px);
  flex-direction: column;
  gap: 6px;
  height: 70dvh;
  overflow-y: auto;
}
.SearchResults > div {
  flex-shrink: 0;
}
.SearchBar > input:focus + .SearchResults, .SearchResults:hover {
  display: flex;
}
button {
  app-region: no-drag;
}
.QueueSong > .SongImageContainer > svg {
  height: 3em;
  width: auto;
}
.CurrentSongImage > svg {
  height: 100%;
}
.BottomBarMobile {
  display: flex;
  flex-direction: column;
}
.PageSwitcherBar {
  display: flex;
  background-color: var(--bgbg);
  gap: 2px;
  padding: 2px 2px;
}
.PageSwitcherBar > button {
  background-color: transparent;
  color: var(--fg);
  border: none;
  flex-grow: 1;
  font-size: 1em;
  flex-basis: 0;
  border-radius: 100px;
  height: 50px;
  transition: background-color 0.3s;
}
.PageSwitcherBar > button.Current {
  background-color: var(--fg-base);
}
.BottomBarMobile > .PlayerBar {
  padding: 5px;
  gap: 5px;
}
.BottomBarMobile .PlayerBarControls {
  gap: 2px;
}
.BottomBarMobile .PlayerBarControls button {
  border-radius: 50px;
}
.BottomBarMobile .PlayerBarLeft, .BottomBarMobile .PlayerBarRight {
  flex-basis: initial;
}
.BottomBarMobile .SongDetailsText, .BottomBarMobile .PlayerBarSongDetails {
  min-width: 0;
}
.BottomBarMobile .PlayerBarControls .Button {
  width: 40px;
}
.SearchBarContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}
.SearchBarContainer > .SearchBar {
  flex-grow: 1;
}
.LayoutMobile .Main > div {
 flex-grow: 1;
}
.Content, html, body, .MainContainer, .LayoutMobile, .LayoutMobile > .Main {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
html {
  position: fixed;
  inset: 0;
}
.BottomBarMobile .PlayerBar {
  background-image: linear-gradient(to right, var(--palette-4), var(--palette-1), var(--palette-3));
}


.ProgressbarContainer {
  display: flex;
  flex-grow: 1;
  max-width: 500px;
  align-items: center;
  gap: 10px;
}
.ProgressBar {
  flex-grow: 1;
  height: 20px;
  position: relative;
}
.ProgressBar > div {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.ProgressFill {
  border-radius: 100px;
  background-color: var(--fg-base);
  position: absolute;
  overflow: hidden;
}
.ProgressFill > div {
  background-color: var(--fg-base);
}
.ProgressBar > div > div {
  width: 0%;
  height: 100%;
  position: absolute;
}
.ProgressHandle > div > div {
  background-color: var(--fg);
  width: 8px;
  height: 25px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%,-50%);
  border-radius: 200px;
}
.OverlayMessage {
  background-color: var(--bg);
  padding: 10px 10px;
  border-radius: 10px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--fg-base);
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  width: 50vw;
  max-width: 300px;
  word-wrap: break-word;
  animation: MessageAppear 5s;
  animation-fill-mode: both;
  box-sizing: border-box;
}
.OverlayMessageContainer {
  display: flex;
  box-sizing: border-box;
  transition: height 0.5s, margin-bottom 0.5s;
  margin-bottom: 6px;
}
.MessageShrink {
  height: 0px !important;
  margin-bottom: 0px;
}
.OverlayMessageArea {
  padding: 10px;
  display: flex;
  position: fixed;
  top: 0px;
  right: 0px;
  flex-direction: column;
  pointer-events: none;
  z-index: 20;
}
.Row {
  display: flex;
  gap: 5px;
}
.NetworkPane {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-basis: 300px;
}
.RestrictedNetworkPanel {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.RestrictedNetworkPanel > .Row > input {
  flex-grow: 1;
}
@keyframes MessageAppear {
  0% {
    transform: translateX(calc(100% + 10px));
  }
  10% {
    transform: translateX(calc(0%));
  }
  90% {
    transform: translateX(calc(0%));
  }
  100% {
    transform: translateX(calc(100% + 10px));
  }
}

/* Blur Background Mode */
body {
  background-size: cover;
  background-position: center center;
}
.CurrentSongImageBackground .TopBar {
  background-color: rgba(var(--bgbg-rgb),0.5);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  z-index: 10;
}
.CurrentSongImageBackground .Main {
  background-color: rgba(var(--bg-rgb),0.5);;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.CurrentSongImageBackground .Main > div {
  background-color: rgba(var(--bg-rgb),0.2);
}
.CurrentSongImageBackground .PlayerBar {
  background-color: rgba(var(--bgbg-rgb),0.5);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}
.CurrentSongImageBackground .Song {
  background-color: rgba(var(--fg-rgb),0.1);
}
.CurrentSongImageBackground button {
  border: 1px solid var(--fg-plushalf);
  box-shadow: 0 0 5px var(--fg-base);
}
.CurrentSongImageBackground .IconButton {
  padding: 11px;
}
.CurrentSongImageBackground .ExpanderOptions {
  border: 1px solid rgba(var(--fg-rgb),0.25);
}
.CurrentSongImageBackground .MultiOptionButton {
  border: none;
  height: 38px;
}
.CurrentSongImageBackground .SearchBar > input {
  border: 1px solid var(--fg-plushalf);
  box-shadow: 0 0 5px var(--fg-base);
}
.CurrentSongImageBackground .SearchResults {
  background-color: rgba(var(--bg-rgb),1);
}
.CurrentSongImageBackground .BottomBarMobile .PlayerBar {
  background-image: none;
  backdrop-filter: none;
}
.CurrentSongImageBackground .BottomBarMobile {
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}
.CurrentSongImageBackground .PageSwitcherBar {
  background-color: rgba(var(--bgbg-rgb),0.5);
}
.CurrentSongImageBackground .ProgressBar > .ProgressFill > div {
  box-shadow: inset 0 0 10px var(--fg-double);
}
.CurrentSongImageBackground .ProgressFill {
  border: 1px solid var(--fg-plushalf);
  box-shadow: 0 0 5px var(--fg-base);
}
.CurrentSongImageBackground .ProgressHandle {
  border: 1px solid transparent;
}
/* End of Blur Background Mode */
.NetworkDevicesList {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.NetworkDevice {
  padding: 5px;
  border-radius: 5px;
  background-color: var(--fg-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.BorderWrapper {
  min-width: 0;
}
.NDPreviousSongs, .NDNextSongs {
  padding: 5px;
  border-radius: 5px;
  background-color: var(--fg-base);
  max-height: 100px;
  overflow-x: scroll;
  white-space: pre;
  min-width: 0;
}
.NDGeneralInfo {
  white-space: pre-line;
  word-wrap: anywhere;
}
.NetworkDevice > .Label {
  margin-top: 5px;
}

#PlayerBarSongImg:active {
  transform: scale(8);
  border-radius: 0px;
}
#PlayerBarSongImg {
  transition: transform 1s, border-radius 1s;
  transform-origin: bottom left;
  border: none;
  padding: 0px;
}
.BottomBarMobile .PlayerBarLeft {
  overflow: hidden;
}
.BottomBarMobile .PlayerBar > div {
  flex-grow: 1;
  flex-basis: 0;
}


@view-transition {
  navigation: auto;
}
body {
  view-transition-name: musicplayer;
}


.OmniAudClients, .OmniAudClient {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.OmniAudClients {
  max-height: 400px;
}
.OmniAudClient {
  padding: 5px;
  border-radius: 5px;
  background-color: var(--fg-base);
}
.OmniAudClient > audio {
  border-radius: 10px;
}

.OmniAudMain {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.MicroLessons {
  image-rendering: crisp-edges;
  opacity: 0.01;
  transform-origin: top left;
  transition: opacity 1s, transform 1s;
}
.MicroLessons:hover {
  opacity: 1;
  transform: scale(4);
}
.AutoColorThin {
  fill: var(--fg-double) !important;
}
.MeterBar {
  height: 40px;
  background-color: var(--fg-base);
  border-radius: 10px;
  overflow: clip;
}
.MeterBar > div {
  width: 0%;
  background-color: var(--fg-double);
  height: 100%;
}

.LayoutDesktop .PlayerBar {
  border-top: none;
  box-shadow: none;
}
.LayoutDesktop .TopBar {
  border-bottom: none;
  box-shadow: none;
}
.LayoutDesktop .Main {
  padding: 0px 10px;
}
.LayoutDesktop .CenterPane, .LayoutDesktop .PlayingViewPane, .LayoutDesktop .NetworkPane, .LayoutDesktop .Pane {
  border-radius: 15px;
}
g.AutoColorThin > * {
  fill: var(--fg-double) !important;
}

/*
html::view-transition-old(musicplayer) {
  animation-duration: 5s;
}
html::view-transition-new(musicplayer) {
  animation-duration: 5s;
}
*/

.Hidden {
  display: none;
}
.Invisible {
  opacity: 0;
}

