/* Phoenix Music — uboger.com inspired player UI */

:root {
  --pm-bg: #050608;
  --pm-panel: #101010;
  --pm-accent: #1db954;
  --pm-accent-soft: rgba(29, 185, 84, 0.18);
  --pm-accent-hover: rgba(29, 185, 84, 0.08);
  --pm-play-grad: linear-gradient(135deg, #ff0050, #ff7a00);
  --pm-muted: #bdbdbd;
  --pm-text-primary: #fff;
  --pm-text-dim: rgba(249, 250, 251, 0.5);
  --pm-lyric-current: #fef3c7;
  --pm-border: rgba(255, 255, 255, 0.08);
  --pm-pl-title-color: #e5e7eb;
  --pm-pl-meta-color: #9ca3af;
  --pm-track-hover-bg: #111827;
  --pm-list-row-border: rgba(255, 255, 255, 0.04);
  --pm-playlist-panel-bg: rgba(5, 6, 8, 0.98);
  --pm-progress-track: #333;
  --pm-progress-thumb: #fff;
  --pm-ctrl-wrap-bg: transparent;
  --pm-ctrl-row-bg: rgba(0, 0, 0, 0.55);
  --pm-ctrl-btn-bg: rgba(0, 0, 0, 0.6);
  --pm-ctrl-btn-color: #fff;
  --pm-side-on-color: #f97316;
  --pm-side-btn-bg: rgba(0, 0, 0, 0.65);
  --pm-side-btn-border: rgba(255, 255, 255, 0.08);
  --pm-side-btn-color: #fff;
  --pm-icon-round-bg: rgba(0, 0, 0, 0.6);
  --pm-icon-round-color: #fff;
  --pm-vip-cta-bg: rgba(5, 6, 8, 0.92);
  --pm-vip-cta-border: rgba(29, 185, 84, 0.25);
  --pm-vip-cta-title-color: #fff;
  --pm-track-active-bg: linear-gradient(90deg, rgba(29, 185, 84, 0.18), rgba(29, 185, 84, 0.08));
  --pm-panel-header-border: #222;
  --pm-tab-color: var(--pm-muted);
  --pm-tab-hover-bg: rgba(255, 255, 255, 0.08);
  --pm-toolbar-btn-bg: rgba(255, 255, 255, 0.08);
  --pm-toolbar-btn-color: #fff;
  --pm-lyric-size: 18px;
  --pm-lyric-current-size: 24px;
  --pm-buttons-row-radius: 999px;
  --pm-ctrl-wrap-shadow: none;
  --pm-ctrl-wrap-border: none;
  --pm-side-btn-radius: 999px;
  --pm-playlist-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  --pm-stage-enter-bg: rgba(255, 255, 255, 0.08);
  --pm-stage-enter-color: rgba(255, 255, 255, 0.65);
  --pm-appbar-bg: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  --pm-controls-h: 120px;
  --pm-controls-offset: var(--pm-controls-h);
  --pm-side-actions-gap: 16px;
  --pm-side-inset-x: 12px;
  --pm-side-actions-right: calc(env(safe-area-inset-right, 0px) + var(--pm-side-inset-x));
  --pm-appbar-h: 52px;
  --pm-stage-accent: #1db954;
  --pm-stage-accent-soft: rgba(29, 185, 84, 0.22);
  --pm-stage-play-grad: linear-gradient(135deg, #1db954, #1ed760);
  --pm-stage-bg: #000;
  --pm-stage-text: #fff;
  --pm-desk-accent: #ec4141;
  --pm-desk-accent-soft: rgba(236, 65, 65, 0.08);
  --pm-desk-accent-hover: rgba(236, 65, 65, 0.06);
  --pm-desk-bg: #f5f5f5;
  --pm-desk-panel: #fff;
  --pm-desk-sidebar: #fafafa;
  --pm-desk-text: #333;
  --pm-desk-muted: #999;
  --pm-desk-border: rgba(0, 0, 0, 0.06);
  --pm-desk-accent-ring: rgba(236, 65, 65, 0.12);
  --pm-desk-accent-border: rgba(236, 65, 65, 0.15);
  --pm-desk-accent-border-strong: rgba(236, 65, 65, 0.35);
  --pm-desk-accent-vip-grad: linear-gradient(90deg, rgba(236, 65, 65, 0.08), rgba(236, 65, 65, 0.03));
  --pm-desk-row-hover: #fafafa;
  --pm-desk-sidebar: #fafafa;
  --pm-desk-footer-bg: #fff;
  --pm-dbar-cover-radius: 8px;
  --pm-dbar-play-size: 36px;
}

body.pm-theme-base {
  margin: 0;
  font-family: system-ui, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--pm-bg);
  color: var(--pm-text-primary);
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

html:has(> body.pm-theme-base) {
  height: 100%;
  overflow: hidden;
}

.pm-theme-base .pm-player {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: var(--pm-bg);
  box-sizing: border-box;
}

.pm-theme-base .pm-desk-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-theme-base .pm-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .pm-theme-base .pm-player {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ── Top appbar (direct child of main.pm-player on mobile) ── */
.pm-theme-base .pm-appbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0)) max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
  background: var(--pm-appbar-bg);
  z-index: 40;
  pointer-events: auto;
}

.pm-theme-base .pm-appbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pm-theme-base .pm-brand {
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.pm-theme-base .pm-now-playing {
  font-size: 12px;
  color: var(--pm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
}

.pm-theme-base .pm-appbar__menu {
  flex-shrink: 0;
}

.pm-theme-base .pm-quota {
  font-size: 10px;
  color: var(--pm-muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-theme-base .pm-icon-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--pm-icon-round-bg);
  color: var(--pm-icon-round-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pm-theme-base .pm-member-nav .link-btn,
.pm-theme-base .pm-member-nav a {
  color: var(--pm-muted);
  font-size: 12px;
}

/* ── VIP CTA ── */
.pm-theme-base .pm-vip-cta {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 15;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pm-vip-cta-bg);
  border: 1px solid var(--pm-vip-cta-border);
}

.pm-theme-base .pm-vip-cta__text strong {
  display: block;
  font-size: 13px;
  color: var(--pm-vip-cta-title-color);
  font-size: 11px;
  color: var(--pm-muted);
}

.pm-theme-base .pm-vip-cta__btn--primary {
  background: var(--pm-accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
}

.pm-theme-base .pm-vip-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ── Lyrics center ── */
.pm-theme-base .pm-lyrics-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px calc(52px + env(safe-area-inset-right, 0px) + var(--pm-side-inset-x) + 8px) calc(var(--pm-controls-offset, var(--pm-controls-h)) + var(--pm-side-actions-gap)) 20px;
  min-height: 0;
  position: relative;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.pm-theme-base .pm-lyrics-wrap .pm-lyrics,
.pm-theme-base .pm-lyrics-wrap .pm-lyric-line,
.pm-theme-base .pm-lyrics-wrap .pm-lyrics__placeholder {
  pointer-events: auto;
}

.pm-theme-base .pm-stage-enter {
  position: absolute;
  top: 8px;
  right: calc(env(safe-area-inset-right, 0px) + var(--pm-side-inset-x));
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--pm-stage-enter-bg);
  color: var(--pm-stage-enter-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  pointer-events: auto;
}

.pm-theme-base .pm-stage-enter:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pm-theme-base .pm-lyrics {
  max-width: 760px;
  max-height: 70vh;
  overflow-y: auto;
  text-align: center;
  width: 100%;
  background: transparent;
  cursor: pointer;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pm-theme-base .pm-lyrics::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pm-theme-base .pm-lyrics__placeholder {
  color: var(--pm-text-dim);
  font-size: 16px;
  padding: 40px 16px;
}

.pm-theme-base .pm-lyric-line {
  display: block;
  margin: 8px 0;
  font-size: var(--pm-lyric-size);
  font-weight: 500;
  color: var(--pm-text-dim);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s, font-size 0.2s;
  line-height: 1.5;
}

.pm-theme-base .pm-lyric-line.is-current {
  color: var(--pm-lyric-current);
  font-weight: 700;
  font-size: var(--pm-lyric-current-size);
  transform: translateY(-2px);
}

/* ── Right side actions — fixed to viewport edge ── */
.pm-theme-base .pm-side-actions {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + var(--pm-side-inset-x));
  bottom: calc(var(--pm-controls-offset, var(--pm-controls-h)) + var(--pm-side-actions-gap));
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

.pm-theme-base .pm-side-btn {
  width: 52px;
  min-height: 52px;
  border-radius: var(--pm-side-btn-radius);
  background: var(--pm-side-btn-bg);
  border: 1px solid var(--pm-side-btn-border);
  color: var(--pm-side-btn-color);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 8px 4px;
}

.pm-theme-base .pm-side-btn.is-on {
  color: var(--pm-side-on-color);
}

.pm-theme-base .pm-side-btn.is-on i {
  color: var(--pm-side-on-color);
}

.pm-theme-base .pm-side-count {
  font-size: 11px;
  color: var(--pm-muted);
  margin-top: 2px;
  min-height: 14px;
}

.pm-theme-base .pm-side-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.pm-theme-base .pm-side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Playlist slide panel ── */
.pm-theme-base .pm-playlist-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 0;
  max-width: 380px;
  background: var(--pm-playlist-panel-bg);
  z-index: 30;
  overflow: hidden;
  transition: width 0.28s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
}

.pm-theme-base .pm-playlist-panel.is-open {
  width: 320px;
  box-shadow: var(--pm-playlist-shadow);
  pointer-events: auto;
  visibility: visible;
}

.pm-theme-base .pm-playlist-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0)) 14px 14px;
  border-bottom: 1px solid var(--pm-panel-header-border);
  flex-shrink: 0;
}

.pm-theme-base .pm-drawer-account {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pm-border);
  flex-shrink: 0;
}

.pm-theme-base .pm-drawer-account .pm-member-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.pm-theme-base .pm-drawer-account .member-nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.pm-theme-base .pm-drawer-account .member-nav-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-theme-base .pm-drawer-account__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-theme-base .pm-quota--drawer {
  flex: 1;
  min-width: 0;
  max-width: none;
  font-size: 11px;
  line-height: 1.35;
}

.pm-theme-base .pm-playlist-tabs {
  display: flex;
  border-bottom: 1px solid var(--pm-border);
  overflow-x: auto;
  flex-shrink: 0;
}

.pm-theme-base .pm-tab-btn {
  flex: 1;
  padding: 8px 10px;
  background: none;
  border: none;
  color: var(--pm-tab-color);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.pm-theme-base .pm-tab-btn:hover {
  background: var(--pm-tab-hover-bg);
}

.pm-theme-base .pm-tab-btn.is-active {
  font-weight: 700;
  color: var(--pm-accent);
  border-bottom: 2px solid var(--pm-accent);
}

.pm-theme-base .pm-toolbar-btn {
  background: var(--pm-toolbar-btn-bg);
  border: 1px solid var(--pm-border);
  color: var(--pm-toolbar-btn-color);
  font-size: 12px;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.pm-theme-base .pm-list {
  list-style: none;
  margin: 0;
  padding: 10px 6px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.pm-theme-base .pm-track-row,
.pm-theme-base .pm-playlist-card {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  color: var(--pm-muted);
  border: 1px solid var(--pm-list-row-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-theme-base .pm-track-row:hover,
.pm-theme-base .pm-playlist-card:hover {
  background: var(--pm-track-hover-bg);
  color: var(--pm-text-primary);
}

.pm-theme-base .pm-track-row.is-active {
  background: var(--pm-track-active-bg);
  color: var(--pm-accent);
  font-weight: 700;
}

.pm-theme-base .pm-pl-info {
  flex: 1;
  min-width: 0;
}

.pm-theme-base .pm-pl-title {
  font-size: 13px;
  color: var(--pm-pl-title-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-theme-base .pm-track-row.is-active .pm-pl-title {
  color: var(--pm-accent);
}

.pm-theme-base .pm-pl-meta {
  font-size: 11px;
  color: var(--pm-pl-meta-color);
  margin-top: 2px;
}

.pm-theme-base .pm-pl-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.pm-theme-base .pm-pl-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.pm-theme-base .pm-pl-icon:hover {
  background: #1f2937;
}

.pm-theme-base .pm-pl-icon.is-on {
  color: var(--pm-side-on-color);
  border-color: var(--pm-side-on-color);
}

.pm-theme-base .pm-badge {
  color: #ff0050;
  font-size: 11px;
}

.pm-theme-base .pmp-list-play {
  width: 28px;
  height: 28px;
  opacity: 1;
  transform: none;
  background: rgba(29, 185, 84, 0.25);
  color: #fff;
  font-size: 11px;
}

.pm-theme-base .pmp-list-play.is-playing {
  background: var(--pm-accent);
}

.pm-theme-base .pm-empty,
.pm-theme-base .pm-empty-state {
  color: var(--pm-muted);
  text-align: center;
  padding: 24px 12px;
  list-style: none;
}

.pm-theme-base .pm-btn-login {
  background: var(--pm-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  margin-top: 8px;
}

.pm-theme-base .pm-error {
  color: #ff8787;
  padding: 8px 12px;
  font-size: 12px;
}

.pm-theme-base .pm-error-banner {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.15);
  text-align: center;
  flex-shrink: 0;
}

.pm-theme-base .pm-error-banner[hidden] {
  display: none;
}

/* ── Preview tips ── */
.pm-theme-base .pm-preview-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--pm-controls-offset, var(--pm-controls-h)) + 12px + env(safe-area-inset-bottom, 0));
  z-index: 22;
  width: min(calc(100% - 24px), 600px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid rgba(255, 193, 7, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.pm-theme-base .pm-preview-banner[hidden] {
  display: none;
}

.pm-theme-base .pm-preview-banner__main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: #ffd666;
  line-height: 1.4;
}

.pm-theme-base .pm-preview-banner__main i {
  flex-shrink: 0;
  font-size: 14px;
}

.pm-theme-base .pm-preview-banner__action {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--pm-accent);
  color: #fff;
}

.pm-theme-base .pm-preview-ended {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.pm-theme-base .pm-preview-ended[hidden] {
  display: none;
}

.pm-theme-base .pm-preview-ended__card {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.pm-theme-base .pm-preview-ended__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
}

.pm-theme-base .pm-preview-ended__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.pm-theme-base .pm-preview-ended__title {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.pm-theme-base .pm-preview-ended__desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.pm-theme-base .pm-preview-ended__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pm-theme-base .pm-preview-ended__btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pm-theme-base .pm-preview-ended__btn--primary {
  background: var(--pm-accent);
  color: #fff;
}

.pm-theme-base .pm-preview-ended__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pm-theme-base.is-preview-active .pm-progress-bar {
  accent-color: #ffc107;
}

/* ── Bottom controls ── */
.pm-theme-base .pm-controls-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0));
  max-width: 100%;
  margin: 0 auto;
  background: var(--pm-ctrl-wrap-bg);
  border-top: var(--pm-ctrl-wrap-border);
  box-shadow: var(--pm-ctrl-wrap-shadow);
}

.pm-theme-base .pm-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 2px 12px;
  box-sizing: border-box;
}

.pm-theme-base .pm-time {
  min-width: 48px;
  font-size: 13px;
  color: var(--pm-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pm-theme-base .pm-progress-bar {
  flex: 1;
  appearance: none;
  height: 4px;
  background: var(--pm-progress-track);
  border-radius: 4px;
  outline: none;
}

.pm-theme-base .pm-progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pm-progress-thumb);
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.pm-theme-base .pm-progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pm-progress-thumb);
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.pm-theme-base .pm-buttons-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: var(--pm-ctrl-row-bg);
  padding: 8px 14px;
  border-radius: var(--pm-buttons-row-radius);
}

.pm-theme-base .pm-ctrl-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pm-ctrl-btn-bg);
  border: none;
  color: var(--pm-ctrl-btn-color);
  cursor: pointer;
  font-size: 18px;
}

.pm-theme-base .pm-ctrl-btn--play {
  width: 62px;
  height: 62px;
  font-size: 20px;
  background: var(--pm-play-grad);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.pm-theme-base .pm-ctrl-btn.is-on {
  color: var(--pm-accent);
}

.pm-theme-base .pm-ctrl-btn i {
  line-height: 1;
  pointer-events: none;
}

/* Hide default mini player bar on music page */
body.pm-theme-base .pmp-root[data-mode="bar"] {
  display: none !important;
}

/* Scrollbar */
.pm-theme-base ::-webkit-scrollbar {
  width: 4px;
  background: transparent;
}

.pm-theme-base ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .pm-theme-base .pm-playlist-panel.is-open {
    width: 84%;
  }

  .pm-theme-base .pm-now-playing {
    display: none;
  }

  .pm-theme-base .pm-lyric-line {
    font-size: var(--pm-lyric-size);
  }

  .pm-theme-base .pm-lyric-line.is-current {
    font-size: var(--pm-lyric-current-size);
  }

  .pm-theme-base .pm-ctrl-btn {
    width: 42px;
    height: 42px;
  }

  .pm-theme-base .pm-ctrl-btn--play {
    width: 56px;
    height: 56px;
  }

  .pm-theme-base .pm-side-actions {
    gap: 10px;
  }

  .pm-theme-base .pm-side-btn {
    width: 48px;
    min-height: 48px;
  }
}

@media (min-width: 641px) {
  body.pm-theme-base:not(.pm-theme-qq):not(.pm-theme-hybrid) .pm-controls-wrap {
    left: 50%;
    transform: translateX(-50%);
    max-width: 640px;
  }
}
