/* ---------- Glass music player ---------- */
.fa-player {
  position: fixed; right: 16px; bottom: 72px; z-index: 995; width: 600px; max-width: calc(100vw - 32px);
  padding: 14px 20px 12px; border-radius: 22px; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px) saturate(130%); -webkit-backdrop-filter: blur(8px) saturate(130%);
  box-shadow: 0 14px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s, width .45s;
  animation: faPlayerIn .8s cubic-bezier(.2,.8,.2,1) both .6s;
}
.fa-player::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad); opacity: 0; transition: opacity .5s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.fa-player.playing::before { opacity: .9; }
.fa-player-top { display: flex; align-items: center; gap: 12px; }
.fa-cover {
  flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--grad); background-size: 200% 200%; animation: gradmove 6s ease infinite;
}
.fa-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.fa-eq span { width: 4px; height: 6px; border-radius: 2px; background: #fff; }
.fa-player.playing .fa-eq span { animation: faEq 1s ease-in-out infinite; }
.fa-eq span:nth-child(2) { animation-delay: -.6s !important; }
.fa-eq span:nth-child(3) { animation-delay: -.3s !important; }
.fa-eq span:nth-child(4) { animation-delay: -.8s !important; }
.fa-meta { min-width: 0; flex: 1; }
.fa-title { font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.fa-artist { font-size: 12px; color: #c3cbdb; text-shadow: 0 1px 6px rgba(0,0,0,.6); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-btn[hidden] { display: none; }
.fa-icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: color .3s, background .3s; }
.fa-icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.fa-progress { margin: 12px 0 4px; display: grid; grid-template-columns: 38px 1fr 38px; gap: 10px; align-items: center; font-size: 11px; color: #c3cbdb; font-variant-numeric: tabular-nums; }
.fa-progress span:last-child { text-align: right; }
.fa-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer; outline: none;
  background: linear-gradient(90deg, #149ddd, #7c4dff var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); }
.fa-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(20,157,221,.8); }
.fa-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.fa-range:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 4px; }

.fa-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.fa-btn { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: #fff; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; transition: all .3s; position: relative; }
.fa-btn:hover { background: rgba(20,157,221,.2); border-color: var(--accent); transform: translateY(-2px); }
.fa-btn small { position: absolute; font-size: 8px; font-weight: 700; bottom: 6px; }
.fa-play { width: 50px; height: 50px; font-size: 24px; border: 0; background: var(--grad); box-shadow: 0 8px 22px rgba(20,157,221,.4); }
.fa-play:hover { background: var(--grad); box-shadow: 0 10px 28px rgba(124,77,255,.55); }

/* minimized: just a round button with equalizer */
.fa-player.mini { width: 62px; height: 62px; padding: 8px; border-radius: 50%; cursor: pointer; }
.fa-player.mini .fa-meta, .fa-player.mini .fa-progress, .fa-player.mini .fa-controls, .fa-player.mini .fa-icon-btn { display: none; }
.fa-player.mini .fa-cover { flex-basis: 44px; width: 44px; height: 44px; border-radius: 50%; }

@keyframes faEq { 0%,100% { height: 5px; } 50% { height: 20px; } }
@keyframes faPlayerIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

@media (min-width: 601px) {
  .fa-player:not(.mini) { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top ctrl" "prog prog"; column-gap: 16px; align-items: center; }
  .fa-player:not(.mini) .fa-player-top { grid-area: top; min-width: 0; }
  .fa-player:not(.mini) .fa-controls { grid-area: ctrl; margin: 0; }
  .fa-player:not(.mini) .fa-progress { grid-area: prog; margin: 10px 0 0; }
}
@media (max-width: 600px) {
  .fa-player:not(.mini) { left: 16px; right: 16px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .fa-player, .fa-player .fa-eq span { animation: none !important; } }

/* ---------- Final size (chosen by Ayub: 75%); placed above the home text ---------- */
@media (min-width: 601px) {
  .fa-player:not(.mini) { width: 308px; padding: 8px 11px 7px; border-radius: 14px; column-gap: 9px; }
  .fa-player:not(.mini) .fa-player-top { gap: 8px; }
  .fa-player:not(.mini) .fa-cover { flex-basis: 27px; height: 27px; border-radius: 8px; }
  .fa-player:not(.mini) .fa-eq { height: 12px; gap: 2px; }
  .fa-player:not(.mini) .fa-eq span { width: 2px; height: 4px; }
  .fa-player:not(.mini) .fa-title { font-size: 10px; }
  .fa-player:not(.mini) .fa-artist { font-size: 8.5px; }
  .fa-player:not(.mini) .fa-icon-btn { width: 20px; height: 20px; font-size: 11px; }
  .fa-player:not(.mini) .fa-controls { gap: 5px; }
  .fa-player:not(.mini) .fa-btn { width: 24px; height: 24px; font-size: 11px; }
  .fa-player:not(.mini) .fa-play { width: 30px; height: 30px; font-size: 15px; box-shadow: 0 5px 14px rgba(20,157,221,.4); }
  .fa-player:not(.mini) .fa-progress { margin-top: 5px; font-size: 8px; gap: 7px; grid-template-columns: 24px 1fr 24px; }
  .fa-player:not(.mini) .fa-range { height: 3px; }
  .fa-player:not(.mini) .fa-range::-webkit-slider-thumb { width: 9px; height: 9px; }
  .fa-player:not(.mini) .fa-range::-moz-range-thumb { width: 9px; height: 9px; }
  .fa-player { right: auto; bottom: auto; left: 24px; top: 168px; }
  /* sits right above the "Founder & CEO" line and scrolls with the home text (placed by player.js) */
  .fa-player.in-hero { position: absolute; z-index: 5; }
}
@keyframes faEqS { 0%,100% { height: 3px; } 50% { height: 12px; } }
@media (min-width: 601px) { .fa-player.playing:not(.mini) .fa-eq span { animation-name: faEqS; } }

/* ---------- Final size & place (chosen by Ayub: 65%, width 340, right 40px, top 72px on 1440x900) ---------- */
@media (min-width: 601px) {
  .fa-player:not(.mini) { width: 221px; padding: 7px 9px 6px; border-radius: 12px; column-gap: 7px; }
  .fa-player:not(.mini) .fa-player-top { gap: 7px; }
  .fa-player:not(.mini) .fa-cover { flex-basis: 23px; height: 23px; border-radius: 7px; }
  .fa-player:not(.mini) .fa-eq { height: 10px; }
  .fa-player:not(.mini) .fa-title { font-size: 8.7px; }
  .fa-player:not(.mini) .fa-artist { font-size: 7.4px; }
  .fa-player:not(.mini) .fa-icon-btn { width: 17px; height: 17px; font-size: 9.5px; }
  .fa-player:not(.mini) .fa-controls { gap: 4px; }
  .fa-player:not(.mini) .fa-btn { width: 21px; height: 21px; font-size: 9.5px; }
  .fa-player:not(.mini) .fa-play { width: 26px; height: 26px; font-size: 13px; }
  .fa-player:not(.mini) .fa-progress { margin-top: 4px; font-size: 7px; gap: 6px; grid-template-columns: 21px 1fr 21px; }
  .fa-player:not(.mini) .fa-range::-webkit-slider-thumb { width: 8px; height: 8px; }
  .fa-player:not(.mini) .fa-range::-moz-range-thumb { width: 8px; height: 8px; }
  .fa-player.in-hero { left: auto; bottom: auto; right: 40px; top: 72px; }
}
