/* ============================================================
   Hub — lecteur de musique flottant (style verre, surbrillance blanche facon Apple) + toast
   ============================================================ */
#hp { position: fixed; right: 18px; bottom: 18px; z-index: 10050; font-family: "Suisse Int'l", -apple-system, BlinkMacSystemFont, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
#hp *, #hp *::before, #hp *::after { box-sizing: border-box; }
#hp button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.hp-glass, .hp-pill, .hp-panel { background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)); border: 1px solid rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 0 rgba(255,255,255,0.05), 0 18px 50px rgba(0,0,0,0.45); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); }
#hp .hp-pill { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 14px; border-radius: 999px; max-width: 46px; overflow: hidden; transition: max-width .55s cubic-bezier(0.16,1,0.3,1), transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s; }
#hp .hp-pill:hover, #hp.on .hp-pill { max-width: 260px; }
#hp .hp-pill:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 1px rgba(255,255,255,0.08), 0 0 28px rgba(255,255,255,0.18), 0 18px 50px rgba(0,0,0,0.45); }
.hp-mini { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.15; white-space: nowrap; }
.hp-mini b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; max-width: 180px; text-shadow: 0 0 14px rgba(255,255,255,0.45); }
.hp-mini em { font-style: normal; font-size: 11px; color: rgba(255,255,255,0.6); }
.hp-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; flex: none; width: 18px; }
.hp-eq i { width: 3px; height: 30%; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.7); }
#hp.on .hp-eq i { animation: hp-eq 1s ease-in-out infinite; }
.hp-eq i:nth-child(2) { animation-delay: -.3s !important; } .hp-eq i:nth-child(3) { animation-delay: -.6s !important; } .hp-eq i:nth-child(4) { animation-delay: -.15s !important; } .hp-eq i:nth-child(5) { animation-delay: -.45s !important; }
@keyframes hp-eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.hp-eq.big { height: 34px; width: auto; gap: 4px; } .hp-eq.big i { width: 5px; }
.hp-eq.sm { height: 11px; width: 12px; gap: 2px; } .hp-eq.sm i { width: 2px; animation: hp-eq 1s ease-in-out infinite; }
#hp .hp-panel { position: absolute; right: 0; bottom: 58px; width: 360px; max-width: calc(100vw - 36px); max-height: min(640px, calc(100vh - 100px)); overflow: auto; border-radius: 26px; padding: 18px; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97); transform-origin: bottom right; transition: all .45s cubic-bezier(0.16,1,0.3,1); background: linear-gradient(180deg, rgba(40,44,60,0.72), rgba(16,18,28,0.82)); }
#hp.open .hp-panel { opacity: 1; visibility: visible; transform: none; }
.hp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hp-head b { font-weight: 500; font-size: 15px; letter-spacing: .02em; text-shadow: 0 0 18px rgba(255,255,255,0.5); }
#hp .hp-x { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 18px; line-height: 1; }
.hp-now { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.hp-art { width: 74px; height: 74px; border-radius: 18px; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%), linear-gradient(135deg, var(--hp-c1, #3a7bd5), var(--hp-c2, #ff7a59)); box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.4); }
.hp-meta { flex: 1; min-width: 0; }
.hp-meta b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 16px rgba(255,255,255,0.4); }
.hp-meta em { display: block; font-style: normal; font-size: 12.5px; color: rgba(255,255,255,0.6); margin: 2px 0 10px; }
.hp-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,0.15); cursor: pointer; overflow: hidden; }
.hp-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(255,255,255,0.8); }
.hp-time { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 5px; font-variant-numeric: tabular-nums; }
.hp-ctl { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px; }
#hp .hp-ctl > button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,0.85); transition: background .2s, color .2s, transform .2s; }
#hp .hp-ctl > button:hover { background: rgba(255,255,255,0.12); color: #fff; }
#hp .hp-ctl > button.on { color: #fff; text-shadow: 0 0 10px #fff; background: rgba(255,255,255,0.14); }
.hp-ctl svg { width: 17px; height: 17px; }
#hp .hp-ctl .hp-play { width: 44px; height: 44px; background: #fff; color: #0b0d14; box-shadow: 0 0 22px rgba(255,255,255,0.45); }
#hp .hp-ctl .hp-play:hover { background: #fff; transform: scale(1.06); color: #0b0d14; }
.hp-vol { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 6px; color: rgba(255,255,255,0.7); }
.hp-vol svg { width: 16px; height: 16px; flex: none; }
.hp-vol input { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.22); outline: none; }
.hp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.9); cursor: pointer; }
.hp-vol input::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.9); }
.hp-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.hp-it { display: grid; grid-template-columns: 22px 1fr auto 22px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 13px; transition: background .2s; }
.hp-it:hover { background: rgba(255,255,255,0.08); }
.hp-it.cur { background: rgba(255,255,255,0.14); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); }
.hp-it > span { color: rgba(255,255,255,0.5); font-size: 11px; text-align: center; }
.hp-it b { font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-it em { font-style: normal; font-size: 11px; color: rgba(255,255,255,0.45); white-space: nowrap; }
#hp .hp-it button { width: 22px; height: 22px; border-radius: 50%; color: rgba(255,255,255,0.4); font-size: 15px; visibility: hidden; }
.hp-it:hover button { visibility: visible !important; }
#hp .hp-it button:hover { color: #fff; background: rgba(255,255,255,0.12); }
.hp-it.ext span { color: #fff; }
.hp-emb iframe { width: 100%; border: 0; border-radius: 16px; margin-bottom: 10px; background: rgba(0,0,0,0.3); }
.hp-add { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-add input { flex: 1 1 100%; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.25); color: #fff; padding: 0 12px; font: inherit; font-size: 12.5px; outline: none; }
.hp-add input:focus { border-color: rgba(255,255,255,0.45); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
#hp .hp-add button, #hp .hp-file { flex: 1; height: 36px; border-radius: 12px; background: rgba(255,255,255,0.92); color: #0b0d14; font-size: 13px; font-weight: 500; display: grid; place-items: center; cursor: pointer; }
#hp .hp-file { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.hp-cred { margin-top: 10px; font-size: 10.5px; color: rgba(255,255,255,0.4); line-height: 1.4; }
#hp-toast { position: fixed; left: 50%; bottom: 26px; z-index: 10060; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 14px; color: #fff; font: 450 13.5px "Suisse Int'l", -apple-system, sans-serif; background: rgba(20,22,32,0.82); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: all .4s cubic-bezier(0.16,1,0.3,1); }
#hp-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { #hp { right: 12px; bottom: 12px; } }
