.gf-home-music {
  position: fixed;
  z-index: 80;
  left: max(clamp(16px, 3.4vw, 62px), env(safe-area-inset-left));
  bottom: max(clamp(18px, 4vh, 46px), env(safe-area-inset-bottom));
  max-width: min(36vw, 260px);
}
.gf-home-music audio[controls] { width: min(260px, 45vw); }
.gf-home-music audio:not([controls]), .gf-music-control[hidden] { display: none; }
.gf-music-control {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 5px 12px 5px 6px;
  color: #f2e9d6;
  border: 1px solid rgba(213, 186, 137, .53);
  background: rgba(14, 15, 17, .8);
  border-radius: 3px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.gf-music-control:hover, .gf-music-control:focus-visible { border-color: #ecd4a4; }
.gf-music-control:focus-visible { outline: 2px solid #ecd4a4; outline-offset: 3px; }
.gf-music-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid #b89e70;
  border-radius: 50%;
}
.gf-music-icon::before {
  content: '';
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 5px 0 5px 8px;
  border-left-color: currentColor;
  margin-left: 2px;
}
.gf-home-music[data-state='playing'] .gf-music-icon::before {
  box-sizing: content-box;
  width: 3px;
  height: 10px;
  border-width: 0 2px;
  border-color: currentColor;
  margin: 0;
}
.gf-music-copy, .gf-music-title, .gf-music-state { display: block; min-width: 0; }
.gf-music-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.45; }
.gf-music-state { color: #d1c4ad; font-size: 10px; line-height: 1.4; }
.gf-music-add { width: 28px; flex: 0 0 28px; text-align: center; font-size: 23px; }
.gf-playlist { position: fixed; right: 20px; bottom: 24px; z-index: 85; font-size: 13px; }
.gf-player-launcher { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--surface) 64%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 25px; cursor: pointer; }
.gf-player-launcher[aria-expanded="true"] { border-color: var(--accent); }
.gf-player-launcher > span { display: block; animation: gf-music-spin 6s linear infinite; animation-play-state: paused; }
.gf-playlist.is-playing .gf-player-launcher > span { animation-play-state: running; }
@keyframes gf-music-spin { to { transform: rotate(360deg); } }
.gf-music-bubbles { position: absolute; right: 12px; bottom: 12px; width: 24px; height: 24px; pointer-events: none; }
.gf-music-bubbles > span { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--surface) 30%, transparent); font-size: 14px; line-height: 1; opacity: 0; }
.gf-playlist.is-playing .gf-music-bubbles > span { animation-name: gf-music-bubble; animation-duration: 3.6s; animation-timing-function: ease-out; animation-iteration-count: infinite; }
.gf-music-bubbles > span:nth-child(1) { --bubble-x: -58px; --bubble-y: -70px; --bubble-turn: -22deg; animation-delay: 0s; }
.gf-music-bubbles > span:nth-child(2) { --bubble-x: -25px; --bubble-y: -105px; --bubble-turn: 18deg; animation-delay: -.72s; }
.gf-music-bubbles > span:nth-child(3) { --bubble-x: 12px; --bubble-y: -84px; --bubble-turn: -12deg; animation-delay: -1.44s; }
.gf-music-bubbles > span:nth-child(4) { --bubble-x: -85px; --bubble-y: -38px; --bubble-turn: 26deg; animation-delay: -2.16s; }
.gf-music-bubbles > span:nth-child(5) { --bubble-x: -68px; --bubble-y: -110px; --bubble-turn: -18deg; animation-delay: -2.88s; }
@keyframes gf-music-bubble {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  18% { opacity: .8; }
  75% { opacity: .6; }
  100% { opacity: 0; transform: translate(var(--bubble-x), var(--bubble-y)) rotate(var(--bubble-turn)) scale(1.05); }
}
.gf-player-bar { position: absolute; right: 0; bottom: 60px; display: flex; flex-direction: column; width: min(300px, calc(100vw - 28px)); max-height: calc(100dvh - 110px); padding: 12px; background: color-mix(in srgb, var(--surface) 64%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); }
.gf-player-bar[hidden] { display: none; }
.gf-player-heading { display: flex; align-items: start; gap: 12px; }
.gf-player-track { flex: 1; min-width: 0; }
.gf-player-collapse { background: transparent; border: 0; color: var(--text-soft); cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 4px; }
.gf-player-bar .gf-playlist-toggle { display: block; padding: 6px 8px; margin-top: 8px; border: 1px solid var(--border); box-shadow: none; border-radius: 7px; text-align: left; width: 100%; background: transparent; }
.gf-playlist :is(button, input, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gf-player-bar .gf-now-title { display: block; margin: 0; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-player-bar .gf-now-artist { display: block; margin: 2px 0 0; font-size: 11px; color: var(--text-mute); }
.gf-player-controls { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.gf-player-controls button { color: var(--text); background: transparent; border: 0; font-size: 18px; width: 28px; height: 30px; cursor: pointer; }
.gf-player-controls .gf-track-play { color: var(--accent); }
.gf-track-mute { display: grid; place-items: center; }
.gf-track-mute svg [hidden] { display: none; }
.gf-track-volume { width: 66px; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.gf-volume-value { font-size: 11px; color: var(--text-soft); width: 32px; }
.gf-player-status { color: var(--text-mute); font-size: 10px; margin-top: 4px; }
.gf-playlist-audio { display: none; }
.gf-playlist-toggle, .gf-playlist-panel { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-radius: 12px; }
.gf-playlist-toggle { padding: 12px 16px; cursor: pointer; font: inherit; }
.gf-playlist-toggle span { margin-left: 8px; color: var(--text-mute); font-size: 11px; }
.gf-playlist-panel { min-height: 0; margin-top: 6px; padding-top: 4px; overflow: hidden; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; }
.gf-playlist-panel[hidden] { display: none; }
.gf-playlist-player { min-height: 86px; display: grid; align-items: center; color: var(--text-soft); font-size: 12px; }
.gf-playlist-player iframe { border: 0; width: 100%; height: 86px; background: #fff; border-radius: 6px; }
.gf-playlist-songs { list-style: none; margin: 0; padding: 0; max-height: min(162px, max(48px, calc(100dvh - 290px))); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.gf-playlist-songs li { margin: 0; padding: 0; }
.gf-playlist-songs :is(button, a) { display: block; width: 100%; text-align: left; padding: 8px; background: transparent; border: 0; border-radius: 5px; color: var(--text); cursor: pointer; font: inherit; line-height: 20px; text-decoration: none; }
.gf-playlist-songs :is(button, a):hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.gf-playlist-songs button[aria-current] .gf-song-name { color: var(--accent); }
.gf-song-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media(max-width: 480px) { .gf-playlist { right: 14px; bottom: 18px; } .gf-home-music { max-width: 44vw; } }
