/* ============================================================
   NEW VIBE — Music player (nav button, dropdown panel, hero cursor)
   ============================================================ */

/* ---- Nav button ------------------------------------------------ */
.nv-music-btn {
  position: relative;
  width: 2.25em;
  height: 2.25em;
  border-radius: 100px;
  background: var(--brand-black);
  color: var(--brand-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin-right: 1em;
  flex: 0 0 auto;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background-color .25s;
}
.nv-music-btn:hover { transform: scale(1.08); }
.nv-music-btn.is-open { background: var(--brand-primary); }
.nv-music-btn .nv-eq { display: flex; align-items: flex-end; gap: .16em; height: .9em; }
.nv-music-btn .nv-eq span {
  width: .17em; height: .35em; border-radius: 1px; background: currentColor;
  transform-origin: bottom; animation: nv-eq 1s ease-in-out infinite; animation-play-state: paused;
}
.nv-music-btn .nv-eq span:nth-child(2) { animation-delay: -.3s; height: .9em; }
.nv-music-btn .nv-eq span:nth-child(3) { animation-delay: -.6s; height: .6em; }
.nv-music-btn.is-playing .nv-eq span { animation-play-state: running; }
@keyframes nv-eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ---- Panel ------------------------------------------------------ */
.nv-player {
  position: fixed;
  top: 4.4em;
  right: 1.125em;
  z-index: 5000;
  width: 21em;
  max-width: calc(100vw - 2.25em);
  background: var(--brand-secondary);
  color: var(--brand-black);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.5em;
  box-shadow: 0 1.5em 3em -1em rgba(0,0,0,.25);
  padding: 1.5em 1.5em 1.25em;
  max-height: calc(100vh - 5.4em);
  max-height: calc(100dvh - 5.4em);
  display: flex; flex-direction: column;
  font-family: var(--font-secondary), Arial, sans-serif;
  transform-origin: top right;
  opacity: 0; transform: translateY(-.5em) scale(.96); pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nv-player.is-open { opacity: 1; transform: none; pointer-events: auto; }

.nv-player__art {
  position: relative; width: 10em; height: 10em; margin: 0 auto 1em; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 .8em 1.6em -.6em rgba(0,0,0,.45);
  animation: nv-spin 14s linear infinite; animation-play-state: paused;
}
.nv-player.is-playing .nv-player__art { animation-play-state: running; }
.nv-player__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-player__art::after {           /* vinyl centre */
  content: ""; position: absolute; inset: 50%; width: 1.6em; height: 1.6em; margin: -.8em;
  border-radius: 50%; background: var(--brand-secondary); border: .35em solid var(--brand-black);
  box-sizing: border-box;
}
@keyframes nv-spin { to { transform: rotate(360deg); } }

.nv-player__title {
  font-family: var(--font-primary), Arial, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 1.25em; line-height: 1.05; text-align: center; letter-spacing: .01em; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-player__artist { text-align: center; font-size: .8em; opacity: .65; margin: .3em 0 1em; }

.nv-player__progress { display: flex; align-items: center; gap: .6em; margin-bottom: 1em; }
.nv-player__time { font-size: .7em; font-variant-numeric: tabular-nums; opacity: .6; min-width: 2.8em; }
.nv-player__time.is-end { text-align: right; }
.nv-range {
  --p: 0%; flex: 1; -webkit-appearance: none; appearance: none; height: .35em; border-radius: 1em; outline: 0; cursor: pointer;
  background: linear-gradient(var(--brand-primary), var(--brand-primary)) 0/var(--p) 100% no-repeat, rgba(0,0,0,.12);
}
.nv-range::-webkit-slider-thumb { -webkit-appearance: none; width: .9em; height: .9em; border-radius: 50%; background: #fff; border: 2px solid var(--brand-primary); cursor: pointer; }
.nv-range::-moz-range-thumb { width: .9em; height: .9em; border-radius: 50%; background: #fff; border: 2px solid var(--brand-primary); cursor: pointer; }

.nv-player__controls { display: flex; align-items: center; justify-content: center; gap: 1.1em; }
.nv-ctl {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand-black); display: inline-flex;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), color .2s, opacity .2s;
}
.nv-ctl svg { width: 1.3em; height: 1.3em; }
.nv-ctl.small svg { width: 1.05em; height: 1.05em; }
.nv-ctl.small { opacity: .45; }
.nv-ctl.small.is-on { opacity: 1; color: var(--brand-primary); }
.nv-ctl:hover { transform: scale(1.12); }
.nv-ctl:active { transform: scale(.92); }
.nv-ctl.main {
  width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--brand-primary); color: var(--brand-white);
  align-items: center; justify-content: center; box-shadow: 0 .6em 1.2em -.5em rgba(255,84,0,.7);
}
.nv-ctl.main svg { width: 1.5em; height: 1.5em; }
.nv-ctl.main .ico-play { margin-left: .15em; }
.nv-ctl.main .ico-pause { display: none; }
.nv-player.is-playing .nv-ctl.main .ico-play { display: none; }
.nv-player.is-playing .nv-ctl.main .ico-pause { display: block; }

.nv-player__list {
  list-style: none; margin: 1.1em 0 0; padding: .9em 0 0; border-top: 1px solid rgba(0,0,0,.1);
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 1.2em), transparent);
          mask-image: linear-gradient(#000 calc(100% - 1.2em), transparent);
}
.nv-player__list::-webkit-scrollbar { width: 4px; }
.nv-player__list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 2px; }
.nv-player__list li {
  display: flex; align-items: center; gap: .7em; padding: .4em .35em; border-radius: .6em; cursor: pointer; font-size: .8em;
  transition: background .2s;
}
.nv-player__list li:hover { background: rgba(0,0,0,.05); }
.nv-player__list li.is-active { color: var(--brand-primary); }
.nv-player__list img { width: 2.2em; height: 2.2em; border-radius: .4em; object-fit: cover; }
.nv-player__list .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-player__list .t small { display: block; opacity: .6; font-size: .85em; }
.nv-player__list .d { opacity: .5; font-variant-numeric: tabular-nums; }

/* ---- Hero cursor follower -------------------------------------- */
.hero-video-loop { cursor: default; }
.nv-cursor {
  position: absolute; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 6.5em; height: 6.5em; border-radius: 50%; overflow: hidden;
  background: var(--brand-black); box-shadow: 0 1em 2em -.8em rgba(0,0,0,.5);
  transform: translate(-50%, -50%) scale(0); opacity: 0;
}
.nv-cursor__art {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  animation: nv-spin 10s linear infinite;
}
.nv-cursor.is-playing .nv-cursor__art { animation-duration: 4s; }
.nv-cursor__art img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.nv-cursor__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-primary), Arial, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 1.05em; letter-spacing: .04em; color: var(--brand-white);
  text-shadow: 0 .1em .4em rgba(0,0,0,.6); background: radial-gradient(circle, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 70%);
}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 767px) {
  .nv-music-btn { width: 2.5em; height: 2.5em; margin-right: .6em; }
  .nv-player { top: auto; bottom: 1em; right: 1em; left: 1em; width: auto; max-width: none; max-height: calc(100dvh - 2em); transform-origin: bottom center; }
  .nv-player__art { width: 9em; height: 9em; }
  .hero-video-loop { cursor: default; }
  .nv-cursor { display: none; }
}
