/* AIME site-wide music player (assets/player.js). Self-contained: no page variables needed. */
.hp-dock {
  font-family: "Inter", system-ui, -apple-system, sans-serif; line-height: 1.4; text-align: left;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
  max-width: 980px; margin: 0 auto; background: rgba(12,12,19,0.97); color: #fff;
  border-radius: 18px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.55); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
@media (prefers-reduced-motion: no-preference) { .hp-dock { animation: hp-up 0.25s ease-out; } @keyframes hp-up { from { transform: translateY(30px); opacity: 0; } } }
body.hp-has-dock { padding-bottom: 130px; }
.hp-progress { height: 3px; background: rgba(255,255,255,0.1); }
.hp-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f5900b, #2fa8e8); transition: width 0.4s linear; }
.hp-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; }
.hp-media { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #222; flex: none; }
.hp-art { width: 100%; height: 100%; object-fit: cover; }
.hp-frame { position: absolute; inset: 0; }
.hp-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hp-dock.hp-video .hp-media { width: 168px; height: 94px; }
.hp-dock.hp-video .hp-art { visibility: hidden; }
.hp-dock.hp-spotify .hp-inner { grid-template-columns: minmax(260px, 380px) 1fr auto auto; }
.hp-dock.hp-spotify .hp-media { width: 100%; height: 80px; border-radius: 12px; background: transparent; }
.hp-dock.hp-spotify .hp-art { display: none; }
.hp-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hp-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.hp-title[href]:hover { text-decoration: underline; }
.hp-artist { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.hp-source { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #ffb14e; margin-top: 2px; }
.hp-controls { display: flex; gap: 6px; align-items: center; }
.hp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,0.08); color: #fff; font-size: 0.95rem; display: grid; place-items: center; }
.hp-btn:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.hp-btn:disabled { opacity: 0.3; cursor: default; }
.hp-play { width: 48px; height: 48px; background: linear-gradient(100deg, #f5900b, #ffa63a); color: #0c0c13; font-size: 1rem; }
.hp-play:hover { background: #ffb14e !important; }
.hp-close { background: none; border: 0; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; padding: 0 4px; }
.hp-close:hover { color: #fff; }
@media (max-width: 640px) {
  .hp-inner, .hp-dock.hp-spotify .hp-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .hp-close { position: absolute; top: 6px; right: 8px; }
  .hp-dock.hp-video .hp-media { width: 120px; height: 68px; }
  .hp-dock.hp-spotify .hp-inner { grid-template-columns: 1fr auto; }
  .hp-dock.hp-spotify .hp-meta { display: none; }
  .hp-prev, .hp-next { width: 34px; height: 34px; }
}
