#so-npb-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  color: var(--so-npb-text);
  font-family: inherit;
}
body { padding-bottom: 98px; }

#so-npb-root .so-npb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px var(--so-npb-padding);
  background: linear-gradient(90deg, var(--so-npb-grad-start), var(--so-npb-grad-end));
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}

#so-npb-root .so-npb-left,
#so-npb-root .so-npb-right {
  display: flex;
  align-items: center;
}

#so-npb-root .so-npb-left {
  min-width: 0;
  flex: 1 1 auto;
  gap: var(--so-npb-play-art-gap);
}

#so-npb-root .so-npb-right {
  flex: 0 0 auto;
  gap: 10px;
  padding-left: 8px;
}

#so-npb-root .so-npb-text-wrap { min-width: 0; }
#so-npb-root .so-npb-kicker {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--so-npb-subtext);
  margin-bottom: 2px;
  text-transform: uppercase;
}
#so-npb-root .so-npb-title,
#so-npb-root .so-npb-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#so-npb-root .so-npb-title { font-size: 18px; line-height: 1.2; font-weight: 800; }
#so-npb-root .so-npb-artist { color: var(--so-npb-subtext); font-size: 14px; }

#so-npb-root .so-npb-art-wrap {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 12px; overflow: hidden; position: relative; background: rgba(255,255,255,.08);
}
#so-npb-root .so-npb-art-wrap img,
#so-npb-root .so-npb-art-fallback { width: 100%; height: 100%; object-fit: cover; }
#so-npb-root .so-npb-art-fallback,
#so-npb-root .so-npb-mini-fallback {
  display: flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(255,255,255,.12);
}

#so-npb-root .so-npb-icon-btn,
#so-npb-root .so-npb-round-btn {
  width: 52px; height: 52px; min-width: 52px; border-radius: 999px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s ease, opacity .18s ease;
}
#so-npb-root .so-npb-icon-btn:hover,
#so-npb-root .so-npb-round-btn:hover,
#so-npb-root .so-npb-custom:hover { transform: translateY(-1px); }

#so-npb-root .so-npb-icon-btn { position: relative; background: var(--so-npb-btn-bg); color: var(--so-npb-btn-text); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
#so-npb-root .so-npb-icon-btn .so-npb-pulse { position: absolute; inset: -5px; border-radius: 999px; background: rgba(255, 0, 0, 0.45); animation: soNpbPulse 1.8s infinite; z-index: 0; }
#so-npb-root.is-playing .so-npb-icon-btn .so-npb-pulse { opacity: .16; animation-duration: 2.4s; }
#so-npb-root .so-npb-icon-btn .so-npb-icon,
#so-npb-root .so-npb-round-btn i { position: relative; z-index: 1; font-size: 26px; line-height: 1; }

#so-npb-root .so-npb-history-btn { background: var(--so-npb-recent-btn-bg); color: var(--so-npb-recent-btn-icon); }
#so-npb-root .so-npb-app-btn { background: var(--so-npb-app-btn-bg); color: var(--so-npb-app-btn-icon); }
#so-npb-root .so-npb-podcast-btn { background: var(--so-npb-podcast-btn-bg); color: var(--so-npb-podcast-btn-icon); }
#so-npb-root .so-npb-text-btn { background: var(--so-npb-text-btn-bg); color: var(--so-npb-text-btn-icon); }
#so-npb-root .so-npb-call-btn { background: var(--so-npb-call-btn-bg); color: var(--so-npb-call-btn-icon); }
#so-npb-root .so-npb-app-btn,
#so-npb-root .so-npb-podcast-btn,
#so-npb-root .so-npb-text-btn,
#so-npb-root .so-npb-call-btn,
#so-npb-root .so-npb-history-btn { text-decoration: none; }

@media (hover:hover) and (pointer:fine) {
  #so-npb-root .so-npb-has-tip { position: relative; }
  #so-npb-root .so-npb-has-tip::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(6px);
    background: rgba(12,12,18,.94); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.1; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 5;
  }
  #so-npb-root .so-npb-has-tip:hover::after,
  #so-npb-root .so-npb-has-tip:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#so-npb-root .so-npb-custom { text-decoration: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; }
#so-npb-root .so-npb-custom-text { padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap; gap: 8px; }
#so-npb-root .so-npb-custom-image { gap: 8px; padding: 0 10px; }
#so-npb-root .so-npb-custom-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
#so-npb-root .so-npb-custom-image img { display: block; max-height: 44px; width: auto; max-width: 180px; border-radius: 10px; }

#so-npb-root .so-npb-mobile-app-prompt,
#so-npb-root .so-npb-drawer {
  position: absolute; background: rgba(15, 10, 28, .97); color: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
#so-npb-root .so-npb-mobile-app-prompt {
  left: 10px; right: 10px; bottom: 88px; padding: 18px 16px 16px; display: none; text-align: center;
}
#so-npb-root .so-npb-mobile-app-prompt.open { display: block; }
#so-npb-root .so-npb-mobile-app-title-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; text-align: center;
}
#so-npb-root .so-npb-mobile-app-icon {
  width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); font-size: 22px;
}
#so-npb-root .so-npb-mobile-app-title { font-size: 16px; font-weight: 800; margin-bottom: 0; text-align: center; width: 100%; }
#so-npb-root .so-npb-mobile-app-copy { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.4; text-align: center; }
#so-npb-root .so-npb-mobile-app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
#so-npb-root .so-npb-mobile-app-actions a,
#so-npb-root .so-npb-mobile-app-actions button {
  min-height: 42px; border-radius: 999px; border: 0; padding: 0 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
#so-npb-root .so-npb-mobile-app-open { background: var(--so-npb-btn-bg); color: var(--so-npb-btn-text); }
#so-npb-root .so-npb-mobile-app-dismiss { background: rgba(255,255,255,.14); color: #fff; }

#so-npb-root .so-npb-drawer {
  right: 10px; bottom: 88px; width: min(420px, calc(100vw - 20px)); max-height: 70vh; overflow: auto; background: var(--so-npb-drawer-bg); padding: 14px; display: none;
}
#so-npb-root .so-npb-drawer.open { display: block; }
#so-npb-root .so-npb-drawer-head {
  font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
#so-npb-root .so-npb-panel-close {
  width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; line-height: 1;
}
#so-npb-root .so-npb-mobile-app-close { position: absolute; top: 12px; right: 12px; }

#so-npb-root .so-npb-history-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
#so-npb-root .so-npb-history-row:first-child { border-top: 0; }
#so-npb-root .so-npb-history-art,
#so-npb-root .so-npb-history-art img,
#so-npb-root .so-npb-mini-fallback { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
#so-npb-root .so-npb-history-meta { min-width: 0; flex: 1 1 auto; }
#so-npb-root .so-npb-history-title { font-weight: 700; }
#so-npb-root .so-npb-history-artist { color: rgba(255,255,255,.76); font-size: 13px; margin-top: 2px; }
#so-npb-root .so-npb-history-links { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
#so-npb-root .so-npb-history-links a { color: #fff; text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
#so-npb-root .so-npb-empty { color: rgba(255,255,255,.7); padding: 8px 0; }

@keyframes soNpbPulse {
  0% { transform: scale(.9); opacity: .8; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

@media (max-width: 860px) {
  body { padding-bottom: 90px; }
  #so-npb-root .so-npb-bar { gap: 10px; padding-top: 10px; padding-bottom: 10px; padding-left: var(--so-npb-mobile-left-space); padding-right: var(--so-npb-mobile-right-space); }
  #so-npb-root .so-npb-left { gap: var(--so-npb-play-art-gap); min-width: 0; }
  #so-npb-root .so-npb-right { gap: 8px; padding-left: 0; }
  #so-npb-root .so-npb-title { font-size: 15px; }
  #so-npb-root .so-npb-artist { font-size: 12px; }
  #so-npb-root .so-npb-kicker { font-size: 10px; letter-spacing: 1.2px; }
  #so-npb-root .so-npb-icon-btn,
  #so-npb-root .so-npb-round-btn { width: 44px; height: 44px; min-width: 44px; }
  #so-npb-root .so-npb-art-wrap { width: 50px; height: 50px; flex: 0 0 50px; }
  #so-npb-root .so-npb-custom { display: none; }
  #so-npb-root .so-npb-drawer { bottom: 76px; right: var(--so-npb-mobile-right-space); width: min(420px, calc(100vw - (var(--so-npb-mobile-left-space) + var(--so-npb-mobile-right-space) + 16px))); }
  #so-npb-root .so-npb-mobile-app-prompt { left: var(--so-npb-mobile-left-space); right: var(--so-npb-mobile-right-space); bottom: 76px; }
}

@media (max-width: 860px) {
  #so-npb-root[data-mobile-show-app="0"] .so-npb-app-btn,
  #so-npb-root[data-mobile-show-podcast="0"] .so-npb-podcast-btn,
  #so-npb-root[data-mobile-show-recent="0"] .so-npb-history-btn,
  #so-npb-root[data-mobile-show-text="0"] .so-npb-text-btn,
  #so-npb-root[data-mobile-show-call="0"] .so-npb-call-btn,
  #so-npb-root[data-mobile-show-custom="0"] .so-npb-custom {
    display: none !important;
  }
}

/* v1.7 additions */
#so-npb-root .so-npb-history-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
#so-npb-root .so-npb-history-time { color: rgba(255,255,255,.62); font-size:12px; margin-top:4px; }
#so-npb-root .so-npb-like-btn { border:0; background:transparent; color: rgba(255,255,255,.72); display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-size:14px; padding:0; }
#so-npb-root .so-npb-like-btn.is-liked { color:#ff4d6d; }
#so-npb-root .so-npb-like-count { font-size:12px; }
#so-npb-root .so-npb-inline {
  display:flex; align-items:center; gap:var(--so-npb-play-art-gap,10px); padding:12px 14px; border-radius:16px;
  background: linear-gradient(135deg, var(--so-npb-grad-start), var(--so-npb-grad-end)); color:var(--so-npb-text); width:min(100%, var(--so-npb-inline-width, 720px)); max-width:100%; min-height: var(--so-npb-inline-height, 90px); box-sizing:border-box;
}
#so-npb-root .so-npb-inline .so-npb-meta, .so-npb-inline .so-npb-meta { min-width:0; }
.so-npb-inline .so-npb-title, .so-npb-inline .so-npb-artist, .so-npb-inline .so-npb-kicker { color:inherit; }
.so-npb-inline .so-npb-artist { color: var(--so-npb-subtext); }
@media (min-width: 861px) {
  #so-npb-root[data-desktop-show-app="0"] .so-npb-app-btn,
  #so-npb-root[data-desktop-show-podcast="0"] .so-npb-podcast-btn,
  #so-npb-root[data-desktop-show-recent="0"] .so-npb-history-btn,
  #so-npb-root[data-desktop-show-text="0"] .so-npb-text-btn,
  #so-npb-root[data-desktop-show-call="0"] .so-npb-call-btn,
  #so-npb-root[data-desktop-show-custom="0"] .so-npb-custom { display:none !important; }
}
#so-npb-root .so-npb-title .so-npb-marquee-inner,
#so-npb-root .so-npb-artist .so-npb-marquee-inner,
.so-npb-inline .so-npb-title .so-npb-marquee-inner,
.so-npb-inline .so-npb-artist .so-npb-marquee-inner {
  display:inline-block; min-width:100%;
}
@media (max-width: 860px) {
  #so-npb-root .so-npb-title.so-npb-marquee,
  #so-npb-root .so-npb-artist.so-npb-marquee,
  .so-npb-inline .so-npb-title.so-npb-marquee,
  .so-npb-inline .so-npb-artist.so-npb-marquee {
    white-space: nowrap; overflow: hidden; display:block; position:relative;
  }
  #so-npb-root .so-npb-title.so-npb-marquee .so-npb-marquee-inner,
  #so-npb-root .so-npb-artist.so-npb-marquee .so-npb-marquee-inner,
  .so-npb-inline .so-npb-title.so-npb-marquee .so-npb-marquee-inner,
  .so-npb-inline .so-npb-artist.so-npb-marquee .so-npb-marquee-inner {
    animation: soNpbMarquee var(--so-npb-marquee-speed, 40s) linear infinite;
    animation-delay: var(--so-npb-marquee-pause, 15s);
    padding-right: 24px;
  }
}
@keyframes soNpbMarquee {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(calc(var(--so-npb-scroll-distance, 0px) * -1)); }
}
