/* SENSIK fixed now-playing dock — synchronized with the existing HTMLAudioElement. */
.snv-now-playing-dock {
  position: fixed;
  z-index: 99990;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(880px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 15px 10px;
  border: 1px solid rgba(111, 245, 226, .24);
  border-radius: 22px;
  color: #effffc;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(68, 236, 214, .12), transparent 40%),
    radial-gradient(ellipse at 100% 0%, rgba(139, 119, 255, .12), transparent 44%),
    linear-gradient(125deg, rgba(7, 18, 25, .96), rgba(9, 17, 29, .96) 56%, rgba(15, 18, 36, .96));
  box-shadow: 0 18px 58px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .025), 0 0 34px rgba(61, 225, 205, .10), inset 0 1px 0 rgba(255, 255, 255, .055);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  backdrop-filter: blur(22px) saturate(1.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(.985);
  transform-origin: center bottom;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
  isolation: isolate;
}
.snv-now-playing-dock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg, rgba(89, 246, 221, .25), rgba(135, 129, 255, .17), rgba(89, 246, 221, .08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.snv-now-playing-dock.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.snv-now-playing-main {
  display: grid;
  grid-template-columns: 46px minmax(150px, 1.15fr) minmax(112px, .9fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.snv-now-playing-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(115, 242, 223, .30);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(65, 214, 198, .22), rgba(127, 114, 255, .18)), #0a151d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.snv-now-playing-cover img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.snv-now-playing-cover img:not([src]) { display: none; }
.snv-now-playing-cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #70f3df; font-size: 20px; }
.snv-now-playing-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.snv-now-playing-kicker { display: inline-flex; align-items: center; gap: 6px; color: #83f8e4; font: 900 8px/1.2 Inter, sans-serif; letter-spacing: .13em; white-space: nowrap; }
.snv-now-playing-dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #718e9b; box-shadow: 0 0 0 3px rgba(113, 142, 155, .10); }
.snv-now-playing-dock.is-playing .snv-now-playing-dot { background: #63f5d9; box-shadow: 0 0 0 3px rgba(99, 245, 217, .12), 0 0 12px rgba(99, 245, 217, .55); animation: snvNpdPulse 1.5s ease-in-out infinite; }
.snv-now-playing-dock.is-paused .snv-now-playing-dot { background: #ffc66d; box-shadow: 0 0 0 3px rgba(255, 198, 109, .10); }
.snv-now-playing-title { overflow: hidden; color: #f3fffd; font: 800 12px/1.3 Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.snv-now-playing-subtitle { overflow: hidden; color: rgba(187, 211, 220, .72); font: 700 8px/1.35 Inter, sans-serif; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.snv-now-playing-wave { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 34px; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.snv-now-playing-wave > span { display: block; flex: 0 0 3px; width: 3px; height: var(--snv-npd-bar-height, 14px); max-height: 30px; border-radius: 9px; background: linear-gradient(180deg, #a5a1ff, #69f5df 58%, #21aeb9); opacity: .58; transform: scaleY(.35); transform-origin: center; transition: transform 55ms linear, opacity 90ms ease; box-shadow: 0 0 8px rgba(85, 239, 219, .17); }
.snv-now-playing-dock.is-playing .snv-now-playing-wave > span:not(.is-audio-reactive) { animation: snvNpdBar .52s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -31ms); opacity: .95; }
.snv-now-playing-wave > span.is-audio-reactive { animation: none !important; transform: scaleY(var(--snv-wave-scale, .48)); opacity: .98; }
.snv-now-playing-dock.is-paused .snv-now-playing-wave > span { animation-play-state: paused !important; }
.snv-now-playing-controls { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.snv-now-playing-controls button { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid transparent; border-radius: 50%; color: #c8e4e6; background: rgba(255, 255, 255, .035); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.snv-now-playing-controls .snv-now-playing-skip { width: 32px; height: 32px; font-size: 17px; }
.snv-now-playing-controls .snv-now-playing-toggle { width: 40px; height: 40px; border-color: rgba(142, 255, 231, .60); color: #042523; background: linear-gradient(135deg, #a3ffec, #42e9d2 55%, #94a3ff); box-shadow: 0 0 0 4px rgba(72, 239, 214, .07), 0 5px 18px rgba(64, 224, 206, .21), inset 0 1px 0 rgba(255, 255, 255, .75); font-size: 21px; }
.snv-now-playing-controls button:hover { border-color: rgba(113, 244, 224, .36); color: #fff; background-color: rgba(83, 235, 216, .10); transform: translateY(-1px); }
.snv-now-playing-controls .snv-now-playing-toggle:hover { color: #042523; background: linear-gradient(135deg, #c0fff3, #56eed8 55%, #abb6ff); box-shadow: 0 0 0 5px rgba(72, 239, 214, .10), 0 7px 22px rgba(64, 224, 206, .29); }
.snv-now-playing-controls button:focus-visible { outline: 2px solid #76f7df; outline-offset: 3px; }
.snv-now-playing-timeline { display: grid; grid-template-columns: 37px minmax(0, 1fr) 37px; align-items: center; gap: 9px; margin-top: 9px; color: rgba(196, 220, 226, .72); font: 700 9px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.snv-now-playing-timeline span:last-child { text-align: right; }
.snv-now-playing-timeline input[type="range"] { display: block; width: 100%; height: 12px; margin: 0; accent-color: #5cebd5; cursor: pointer; appearance: none; background: transparent; }
.snv-now-playing-timeline input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, rgba(98, 242, 220, .56), rgba(139, 131, 255, .38)); }
.snv-now-playing-timeline input[type="range"]::-moz-range-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, rgba(98, 242, 220, .56), rgba(139, 131, 255, .38)); }
.snv-now-playing-timeline input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -3.5px; border: 1px solid #e8fffb; border-radius: 50%; appearance: none; background: #5ae9d4; box-shadow: 0 0 0 4px rgba(90, 233, 212, .12), 0 0 12px rgba(90, 233, 212, .56); }
.snv-now-playing-timeline input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 1px solid #e8fffb; border-radius: 50%; background: #5ae9d4; box-shadow: 0 0 0 4px rgba(90, 233, 212, .12), 0 0 12px rgba(90, 233, 212, .56); }
@keyframes snvNpdPulse { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes snvNpdBar { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1.16); } }
body.snv-has-now-playing .sensik-studio-fab { bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 760px) {
  .snv-now-playing-dock { width: calc(100vw - 18px); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 9px 10px 8px; border-radius: 18px; }
  .snv-now-playing-main { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto 22px; gap: 5px 9px; }
  .snv-now-playing-cover { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 11px; }
  .snv-now-playing-meta { grid-column: 2; grid-row: 1; align-self: end; gap: 2px; }
  .snv-now-playing-kicker { font-size: 7px; letter-spacing: .1em; }
  .snv-now-playing-title { font-size: 10px; }
  .snv-now-playing-subtitle { font-size: 7px; }
  .snv-now-playing-wave { grid-column: 2; grid-row: 2; height: 21px; justify-content: flex-start; gap: 1.5px; }
  .snv-now-playing-wave > span { flex-basis: 2.5px; width: 2.5px; }
  .snv-now-playing-controls { grid-column: 3; grid-row: 1 / span 2; gap: 3px; }
  .snv-now-playing-controls .snv-now-playing-skip { width: 26px; height: 30px; font-size: 15px; background: transparent; }
  .snv-now-playing-controls .snv-now-playing-toggle { width: 36px; height: 36px; font-size: 19px; }
  .snv-now-playing-timeline { grid-template-columns: 31px minmax(0, 1fr) 31px; gap: 6px; margin-top: 6px; font-size: 8px; }
  body.snv-has-now-playing .sensik-studio-fab { bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; }
  body.snv-has-now-playing .snv-mobile-conversion-cta.is-visible { bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 390px) {
  .snv-now-playing-main { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 5px 7px; }
  .snv-now-playing-cover { width: 36px; height: 36px; }
  .snv-now-playing-controls .snv-now-playing-skip { width: 22px; }
  .snv-now-playing-controls .snv-now-playing-toggle { width: 32px; height: 32px; }
  .snv-now-playing-subtitle { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .snv-now-playing-dock, .snv-now-playing-dock *, .snv-now-playing-dock.is-playing .snv-now-playing-dot { transition: none !important; animation: none !important; }
}


/* Compact close control; it dismisses the dock only and leaves audio playback intact. */
.snv-now-playing-controls .snv-now-playing-close {
  width: 25px;
  height: 25px;
  margin-left: 2px;
  border-color: rgba(183, 207, 221, .12);
  color: rgba(204, 225, 230, .72);
  background: rgba(255, 255, 255, .025);
  font-size: 11px;
}
.snv-now-playing-controls .snv-now-playing-close:hover {
  border-color: rgba(255, 133, 163, .38);
  color: #ffdbe5;
  background: rgba(255, 100, 145, .09);
  transform: none;
}
@media (max-width: 760px) {
  .snv-now-playing-controls .snv-now-playing-close {
    width: 22px;
    height: 26px;
    margin-left: 0;
    font-size: 10px;
  }
}
