.gfr-mount{--panel:#18231c;--line:#35483b;--fg:#f0f6f1;--muted:#a0b4a6;--green:#85dda2;--accent:#287a49;font:14px/1.4 system-ui,sans-serif;color:var(--fg);text-align:left;min-width:0}
.gfr-mount[data-theme=light]{--panel:#fff;--line:#ceddd1;--fg:#193526;--muted:#526d5c;--green:#246e43;--accent:#246e43}
.gfr-mount *{box-sizing:border-box}
.gfr-mount [hidden]{display:none!important}
.gfr-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0;height:auto;align-self:start}
.gfr-row{display:flex;align-items:center;gap:10px;min-width:0}
.gfr-split{justify-content:space-between}
.gfr-grow{flex:1;min-width:0}
.gfr-mount p{margin:0!important;padding:0!important;line-height:1.35}
.gfr-muted,.gfr-mount small{color:var(--muted);font-size:12px}
.gfr-green,.gfr-mount a{color:var(--green)}
.gfr-title{font-weight:700;overflow-wrap:anywhere}
.gfr-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gfr-art{width:76px;height:76px;flex:none;border-radius:9px;background:#234632;display:grid;place-items:center;overflow:hidden;color:#b9edca;font-size:24px}
.gfr-art img{width:100%;height:100%;object-fit:cover;display:block}
.gfr-mount button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;font:inherit;line-height:1;background:transparent;color:var(--fg);border:1px solid var(--line);border-radius:11px;padding:8px;min-width:34px;min-height:34px;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal;transition:border-color .18s ease,transform .18s ease,background-color .18s ease,opacity .18s ease}
.gfr-mount button:hover{border-color:var(--green)}
.gfr-mount button:active{transform:translateY(1px)}
.gfr-mount button:focus-visible,.gfr-mount a:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.gfr-mount button.gfr-play{width:44px;height:44px;flex:none;border-radius:50%;background:var(--accent);color:white;border:0;box-shadow:0 0 0 1px #00000010 inset}
.gfr-mount svg{width:17px;height:17px;display:block;flex:none}
.gfr-bar{height:4px;background:var(--line);border-radius:8px;overflow:hidden}
.gfr-bar i{display:block;background:var(--green);height:100%;width:0}
.gfr-time{margin-top:-8px}
.gfr-mount input[type=range]{accent-color:var(--accent);flex:1;min-width:35px;width:100%;margin:0;padding:0}
.gfr-history{max-height:300px;overflow:auto;overscroll-behavior:contain}
.gfr-item{display:flex;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.gfr-item .gfr-art{width:35px;height:35px;font-size:16px}
.gfr-float{position:fixed;right:18px;bottom:18px;width:388px;max-width:calc(100vw - 36px);z-index:9990;box-shadow:0 10px 32px #0004;padding:14px;gap:12px}
.gfr-float .gfr-art{width:58px;height:58px;font-size:24px;border-radius:12px}
.gfr-float .gfr-title{font-size:15px;line-height:1.25}
.gfr-float .gfr-row{gap:10px}
.gfr-float .gfr-details{max-height:50vh;overflow:auto}
.gfr-float .gfr-head{display:flex;align-items:center;gap:12px;min-width:0}
.gfr-float .gfr-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-right:4px}
.gfr-float .gfr-copy small{line-height:1.1}
.gfr-float .gfr-actions{display:flex;align-items:center;gap:8px;flex:none;margin-left:2px}
.gfr-float .gfr-actions button{width:40px;height:40px;padding:0;border-radius:12px;background:color-mix(in srgb, var(--panel) 75%, transparent)}
.gfr-float .gfr-actions .gfr-play{width:46px;height:46px;border-radius:999px;background:var(--accent)}
.gfr-float .gfr-actions button svg{width:18px;height:18px}
.gfr-float .gfr-status{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.gfr-float .gfr-status::before{content:'●';font-size:12px;line-height:1}
.gfr-float .gfr-album{color:var(--muted)}
.gfr-float .gfr-mini-volume{display:flex;align-items:center;gap:8px;margin-top:5px;min-width:0}
.gfr-float .gfr-mini-volume svg{width:14px;height:14px;color:var(--muted)}
.gfr-float .gfr-mini-volume input{flex:1;min-width:72px}
.gfr-float.gfr-mini{width:auto;padding:10px 12px;gap:8px}
.gfr-float.gfr-mini [data-action=restore]{display:inline-flex!important;align-items:center;gap:8px;padding:10px 12px;min-height:auto;width:auto;border-radius:999px;background:var(--panel);border:1px solid var(--line)}
.gfr-float [data-action=restore] svg{width:16px;height:16px}
.gfr-details{display:flex;flex-direction:column;gap:10px;overflow:auto}
.gfr-message{font-size:12px;color:var(--muted)}
@media(max-width:760px){.gfr-float{right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:min(388px,calc(100vw - 20px));max-width:calc(100vw - 20px)}.gfr-float .gfr-details{max-height:35vh}.gfr-mount[data-mobile='0'][data-gfr=float]{display:none!important}}

/* Compact layout: dedicate the full middle row to the current track. */
.gfr-float{width:388px;padding:12px 14px;gap:10px}.gfr-compact{display:grid;gap:7px;min-width:0}.gfr-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-left:2px}.gfr-float .gfr-top .gfr-actions{gap:5px}.gfr-float .gfr-top .gfr-actions button{width:29px;height:29px;min-width:29px;min-height:29px;border-radius:8px}.gfr-float .gfr-top .gfr-actions svg{width:15px;height:15px}.gfr-track{display:flex;align-items:center;gap:12px;min-width:0}.gfr-float .gfr-track .gfr-art{width:64px;height:64px}.gfr-float .gfr-track .gfr-play{width:44px;height:44px;padding:0}.gfr-float .gfr-copy{padding:0;gap:4px}.gfr-float .gfr-title{font-size:14px;line-height:1.25}.gfr-float .gfr-album{font-size:13px;line-height:1.25}.gfr-float .gfr-mini-volume{margin:0 56px 0 76px;gap:8px}.gfr-float .gfr-mini-volume input{min-width:0}.gfr-float .gfr-details button{padding:7px 10px;font-size:12px}.gfr-buffer{padding-left:2px}.gfr-float.gfr-mini{width:auto}.gfr-mount button svg{pointer-events:none;max-width:none;max-height:none}.gfr-mount button span{line-height:1.2}@media(max-width:400px){.gfr-float{padding:10px;width:calc(100vw - 20px)}.gfr-float .gfr-track .gfr-art{width:54px;height:54px}.gfr-track{gap:9px}.gfr-float .gfr-mini-volume{margin-left:63px;margin-right:53px}.gfr-float .gfr-track .gfr-play{width:40px;height:40px}.gfr-float.gfr-mini{width:auto}}

.gfr-float .gfr-top .gfr-actions button.gfr-active{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Compact status and mobile launcher */
.gfr-float .gfr-top{justify-content:flex-start;gap:6px}.gfr-float .gfr-top .gfr-status{flex:none}.gfr-float .gfr-top .gfr-actions{margin-left:auto}.gfr-float .gfr-top .gfr-buffer{flex:1;min-width:0;padding:0;font-size:10px;line-height:1.15;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gfr-float.gfr-mini{padding:0;border:0;background:transparent;box-shadow:none}.gfr-float.gfr-mini [data-action=restore]{padding:9px 13px;border-radius:13px;gap:10px;box-shadow:0 4px 18px #0003;text-align:left}.gfr-float [data-action=restore] svg{width:24px;height:24px;color:var(--green)}.gfr-restore-label{display:flex;flex-direction:column;gap:2px}.gfr-restore-label small{font-size:11px;color:var(--muted)}.gfr-restore-label strong{font-size:13px;color:var(--green)}@media(max-width:760px){.gfr-float{width:min(388px,calc(100vw - 20px))}.gfr-float.gfr-mini{width:auto}}

.gfr-float .gfr-top .gfr-buffer{white-space:normal;overflow:visible;overflow-wrap:normal;line-height:1.2;}
