/* Phoenix Mini Player — tier-1 music app bar + compact embed variants */

.pmp-root {
  --pmp-accent: #1db954;
  --pmp-accent-hover: #1ed760;
  --pmp-accent-muted: rgba(29, 185, 84, 0.15);
  --pmp-bg: rgba(18, 18, 18, 0.96);
  --pmp-bg-elevated: #181818;
  --pmp-border: rgba(255, 255, 255, 0.08);
  --pmp-text: #fff;
  --pmp-text-muted: #b3b3b3;
  --pmp-text-dim: #727272;
  --pmp-bar-h: 90px;
  --pmp-compact-h: 64px;
  --pmp-radius: 6px;
  --pmp-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--pmp-font);
  color: var(--pmp-text);
  box-sizing: border-box;
}

.pmp-root *,
.pmp-root *::before,
.pmp-root *::after {
  box-sizing: border-box;
}

.pmp-root[data-theme="light"] {
  --pmp-bg: rgba(255, 255, 255, 0.98);
  --pmp-bg-elevated: #f6f6f6;
  --pmp-border: rgba(0, 0, 0, 0.08);
  --pmp-text: #121212;
  --pmp-text-muted: #535353;
  --pmp-text-dim: #888;
  --pmp-accent: #5c7cfa;
  --pmp-accent-hover: #748ffc;
  --pmp-accent-muted: rgba(92, 124, 250, 0.12);
}

/* ── Bar mode (Spotify / Apple Music tier-1) ── */

body.has-pmp-bar {
  --pmp-site-bar-offset: calc(var(--pmp-bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--pmp-site-bar-offset);
}

body.has-pmp-bar.au-body .au-app {
  padding-bottom: var(--pmp-site-bar-offset);
}

.pmp-root[data-mode="bar"] {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  height: var(--pmp-bar-h);
  background: #000;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  grid-template-rows: 4px 1fr;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pmp-root[data-theme="light"][data-mode="bar"] {
  background: #fff;
  border-top: 1px solid var(--pmp-border);
}

.pmp-root[data-mode="bar"].is-hidden {
  transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
  opacity: 0;
  pointer-events: none;
}

.pmp-progress-wrap {
  position: relative;
  height: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, height 0.15s ease;
}

.pmp-root[data-mode="bar"]:hover .pmp-progress-wrap,
.pmp-root[data-mode="bar"] .pmp-progress-wrap:focus-within {
  opacity: 1;
}

.pmp-progress-wrap:hover { height: 6px; }

.pmp-progress-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
}

.pmp-root[data-theme="light"] .pmp-progress-bg {
  background: rgba(0, 0, 0, 0.12);
}

.pmp-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #fff;
  pointer-events: none;
  transition: width 0.1s linear;
}

.pmp-root[data-theme="light"] .pmp-progress-fill {
  background: var(--pmp-accent);
}

.pmp-bar-body--tier1 {
  display: grid;
  grid-template-columns: minmax(180px, 30%) minmax(400px, 40%) minmax(180px, 30%);
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  min-height: 0;
  height: 100%;
}

.pmp-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pmp-bar-left .pmp-track-info {
  flex: 1;
  min-width: 0;
}

.pmp-bar-body {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr minmax(180px, 30%);
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  min-height: 0;
}

.pmp-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pmp-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #434343 0%, #1a1a1a 100%);
  box-shadow: none;
}

.pmp-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--pmp-text-muted);
}

.pmp-meta { min-width: 0; flex: 1; }

.pmp-title {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.pmp-root[data-mode="bar"] .pmp-title:hover {
  text-decoration: underline;
  cursor: default;
}

.pmp-artist {
  font-size: 11px;
  color: var(--pmp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pmp-root[data-mode="bar"] .pmp-artist:hover {
  color: var(--pmp-text);
  text-decoration: underline;
  cursor: default;
}

.pmp-track-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.pmp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pmp-transport {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pmp-root[data-mode="bar"] .pmp-transport {
  gap: 12px;
}

.pmp-btn--shuffle,
.pmp-btn--repeat,
.pmp-btn--queue {
  color: var(--pmp-text-dim);
}

.pmp-btn--shuffle.is-active,
.pmp-btn--repeat.is-active {
  color: var(--pmp-accent);
}

.pmp-btn--repeat.is-repeat-one {
  position: relative;
}

.pmp-btn--repeat.is-repeat-one::after {
  content: "1";
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: var(--pmp-accent);
  pointer-events: none;
}

.pmp-btn {
  border: none;
  background: transparent;
  color: var(--pmp-text-muted);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, transform 0.1s, background 0.15s;
}

.pmp-btn:hover:not(:disabled) {
  color: var(--pmp-text);
  transform: scale(1.05);
}

.pmp-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pmp-btn--icon { width: 32px; height: 32px; font-size: 16px; }
.pmp-btn--icon-sm { width: 28px; height: 28px; font-size: 14px; }

.pmp-root[data-mode="bar"] .pmp-btn--icon {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.pmp-root[data-mode="bar"] .pmp-btn--icon-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.pmp-btn--play {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #000;
  font-size: 14px;
}

.pmp-root[data-mode="bar"] .pmp-btn--play {
  width: 32px;
  height: 32px;
}

.pmp-root[data-theme="light"] .pmp-btn--play {
  background: #121212;
  color: #fff;
}

.pmp-btn--play:hover:not(:disabled) {
  transform: scale(1.06);
  background: #fff;
  color: #000;
}

.pmp-root[data-theme="light"] .pmp-btn--play:hover:not(:disabled) {
  background: #121212;
  color: #fff;
}

.pmp-btn.is-active { color: var(--pmp-accent); }
.pmp-btn.is-star-active { color: #fcc419; }

.pmp-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--pmp-text-dim);
  font-variant-numeric: tabular-nums;
}

.pmp-time-rail {
  width: 100%;
  max-width: none;
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.pmp-root[data-mode="bar"] .pmp-time-rail:hover {
  height: 6px;
}

.pmp-root[data-theme="light"] .pmp-time-rail {
  background: rgba(0, 0, 0, 0.15);
}

.pmp-time-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}

.pmp-root[data-theme="light"] .pmp-time-fill {
  background: var(--pmp-accent);
}

.pmp-time-rail:hover .pmp-time-fill {
  background: var(--pmp-accent);
}

.pmp-root[data-mode="bar"] .pmp-time {
  width: 100%;
  max-width: 560px;
  gap: 8px;
}

.pmp-root[data-mode="bar"] .pmp-time [data-pmp-time-cur],
.pmp-root[data-mode="bar"] .pmp-time [data-pmp-time-dur] {
  min-width: 40px;
  text-align: center;
  color: #a7a7a7;
  font-size: 11px;
}

.pmp-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.pmp-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmp-volume input[type="range"] {
  width: 100px;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}

.pmp-root[data-theme="light"] .pmp-volume input[type="range"] {
  accent-color: var(--pmp-accent);
}

.pmp-btn--like.is-active { color: var(--pmp-accent); }

.pmp-select {
  appearance: none;
  border: 1px solid var(--pmp-border);
  background: var(--pmp-bg-elevated);
  color: var(--pmp-text-muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.pmp-select:hover { border-color: var(--pmp-text-muted); }

.pmp-lyrics-panel {
  max-height: 72px;
  overflow: hidden;
  text-align: center;
  font-size: 13px;
  color: var(--pmp-text-muted);
  padding: 0 16px 8px;
  line-height: 1.5;
}

.pmp-lyrics-line.is-active {
  color: var(--pmp-accent);
  font-weight: 600;
}

.pmp-slot {
  display: contents;
}

.pmp-slot:empty { display: none; }

/* ── Compact mode (chat / activity) ── */

.pmp-root[data-mode="compact"] {
  width: 100%;
  min-height: var(--pmp-compact-h);
  background: var(--pmp-bg-elevated);
  border: 1px solid var(--pmp-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.pmp-root[data-mode="compact"].is-hidden {
  display: none !important;
}

.pmp-root[data-mode="compact"] .pmp-bar-body {
  grid-template-columns: 1fr auto;
  padding: 0;
  gap: 12px;
}

.pmp-root[data-mode="compact"] .pmp-cover {
  width: 44px;
  height: 44px;
}

.pmp-root[data-mode="compact"] .pmp-center {
  flex-direction: row;
  gap: 12px;
}

.pmp-root[data-mode="compact"] .pmp-right {
  display: none;
}

.pmp-root[data-mode="compact"] .pmp-bar-body > .pmp-time-rail {
  display: none;
}

.pmp-root[data-mode="compact"] .pmp-progress-wrap {
  display: none;
}

.pmp-root[data-mode="compact"] .pmp-inline-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
}

.pmp-inline-progress .pmp-time-rail {
  display: block;
  flex: 1;
  max-width: none;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] {
  padding-bottom: 6px;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] .pmp-lyrics-panel {
  max-height: 72px;
  padding: 4px 12px 6px;
  font-size: 12px;
  text-align: left;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] .pmp-lyrics-scroll {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 64px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] .pmp-lyrics-scroll .pmp-lyrics-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pmp-text-muted);
  line-height: 1.45;
  transition: color 0.15s ease;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] .pmp-lyrics-scroll .pmp-lyrics-line.is-active {
  color: var(--pmp-accent);
  font-weight: 600;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] .pmp-lyrics-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Embed mode (list preview row) ── */

.pmp-root[data-mode="embed"] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--pmp-accent-muted);
  border: 1px solid var(--pmp-border);
}

.pmp-root[data-mode="embed"] .pmp-cover {
  width: 36px;
  height: 36px;
}

.pmp-root[data-mode="embed"] .pmp-meta { flex: 1; min-width: 0; }

.pmp-root[data-mode="embed"] .pmp-title { font-size: 13px; }
.pmp-root[data-mode="embed"] .pmp-artist { font-size: 11px; }

.pmp-root[data-mode="embed"] .pmp-center,
.pmp-root[data-mode="embed"] .pmp-right,
.pmp-root[data-mode="embed"] .pmp-progress-wrap,
.pmp-root[data-mode="embed"] .pmp-lyrics-panel,
.pmp-root[data-mode="embed"] .pmp-track-actions {
  display: none;
}

.pmp-root[data-mode="embed"] .pmp-btn--play {
  width: 32px;
  height: 32px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Global dock (floating preview in modals) ── */

.pmp-dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9500;
  max-width: 480px;
  margin: 0 auto;
  pointer-events: none;
}

.pmp-dock .pmp-root {
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.pmp-dock.is-hidden { display: none; }

/* ── Listen mode (TreeTalk co-listen / lyrics-first dock) ── */

.pmp-root[data-mode="listen"] {
  --pmp-listen-cover: 52px;
  width: 100%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    var(--pmp-bg-elevated);
  border: 1px solid var(--pmp-border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.pmp-root[data-theme="light"][data-mode="listen"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 246, 246, 0.98) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.pmp-listen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pmp-listen__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pmp-listen__cover-wrap {
  position: relative;
  flex-shrink: 0;
  width: var(--pmp-listen-cover);
  height: var(--pmp-listen-cover);
}

.pmp-listen__cover-wrap .pmp-cover {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.pmp-listen__pulse {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 2px solid var(--pmp-accent);
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pmp-root[data-mode="listen"].is-playing .pmp-listen__pulse {
  opacity: 0.55;
  animation: pmp-listen-pulse 2.4s ease-in-out infinite;
}

@keyframes pmp-listen-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.pmp-listen__head .pmp-track-info {
  flex: 1;
  min-width: 0;
}

.pmp-listen__head .pmp-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmp-listen__head .pmp-artist {
  margin-top: 2px;
  font-size: 12px;
  color: var(--pmp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmp-btn--listen {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--pmp-accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pmp-btn--listen:hover {
  background: var(--pmp-accent-hover);
  transform: scale(1.04);
}

.pmp-root[data-theme="light"] .pmp-btn--listen {
  box-shadow: 0 4px 14px rgba(92, 124, 250, 0.28);
}

.pmp-listen__progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmp-listen__progress .pmp-time-rail {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pmp-root[data-theme="light"] .pmp-listen__progress .pmp-time-rail {
  background: rgba(0, 0, 0, 0.08);
}

.pmp-listen__progress .pmp-time-rail:hover .pmp-time-fill {
  filter: brightness(1.08);
}

.pmp-listen__progress .pmp-time-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pmp-accent), var(--pmp-accent-hover));
  width: 0%;
  transition: width 0.12s linear;
}

.pmp-listen__progress .pmp-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--pmp-text-muted);
  white-space: nowrap;
  min-width: 76px;
  text-align: right;
}

.pmp-listen__lyrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pmp-listen__lyrics-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pmp-text-dim);
}

.pmp-root[data-mode="listen"] .pmp-lyrics-stage {
  position: relative;
  min-height: 40px;
  max-height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmp-root[data-theme="light"][data-mode="listen"] .pmp-lyrics-stage {
  background: rgba(0, 0, 0, 0.04);
}

.pmp-root[data-mode="listen"] .pmp-lyrics-stage::before,
.pmp-root[data-mode="listen"] .pmp-lyrics-stage::after {
  display: none;
}

.pmp-lyrics-line--single {
  margin: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pmp-text-muted);
  transition: color 0.18s ease;
}

.pmp-lyrics-line--single.is-active,
.pmp-root[data-mode="listen"] .pmp-lyrics-line--single.is-active {
  color: var(--pmp-text);
  font-weight: 650;
}

.pmp-root[data-mode="compact"] .pmp-lyrics-line--single {
  font-size: 12px;
  text-align: left;
}

.pmp-root[data-mode="compact"][data-lyrics="1"] .pmp-lyrics-panel {
  max-height: 28px;
  padding: 4px 12px 6px;
  text-align: left;
}

.pmp-root[data-mode="listen"] .pmp-lyrics-empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--pmp-text-dim);
  text-align: center;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmp-dock {
  max-width: 520px;
}

.pmp-dock .pmp-root[data-mode="listen"] {
  max-width: 100%;
}

/* ── Chat mode (TreeTalk composer dock, 200×120) ── */

.pmp-root[data-mode="chat"] {
  width: 200px;
  height: 120px;
  box-sizing: border-box;
  background: var(--pmp-bg-elevated);
  border: none;
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: block;
}

.pmp-root[data-mode="chat"].is-hidden {
  display: none !important;
}

.pmp-chat {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 0;
}

.pmp-chat__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

.pmp-chat__head .pmp-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.pmp-chat__head .pmp-meta {
  flex: 1;
  min-width: 0;
}

.pmp-chat__head .pmp-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.pmp-chat__head .pmp-artist {
  font-size: 10px;
  margin-top: 1px;
}

.pmp-btn--chat {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--pmp-accent);
  color: #fff;
  font-size: 11px;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pmp-chat__progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmp-chat__progress .pmp-time-rail {
  flex: 1;
  height: 3px;
  cursor: pointer;
  touch-action: none;
}

.pmp-chat__progress .pmp-time-fill {
  pointer-events: none;
}

.pmp-chat__progress .pmp-time {
  font-size: 10px;
  min-width: 32px;
  text-align: right;
  color: var(--pmp-text-dim);
}

.pmp-chat__lyric {
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  margin-top: auto;
}

/* ── List play button (used by host pages) ── */

.pmp-list-play {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--pmp-accent, #1db954);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
  flex-shrink: 0;
}

.pmp-list-play i {
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.pmp-btn--play i,
.pmp-btn--icon i {
  line-height: 1;
  pointer-events: none;
}

.pmp-list-play:hover { background: var(--pmp-accent-hover, #1ed760); transform: scale(1); }
.pmp-list-play.is-playing { opacity: 1; background: var(--pmp-accent); }

.pmp-track-row:hover .pmp-list-play,
.pmp-share-item:hover .pmp-list-play {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .pmp-bar-body,
  .pmp-bar-body--tier1 {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 12px;
    padding: 8px 12px;
  }

  .pmp-bar-left {
    grid-column: 1;
    min-width: 0;
  }

  .pmp-center {
    grid-column: 2;
    grid-row: 1;
  }

  .pmp-bar-body--tier1 .pmp-time,
  .pmp-bar-body .pmp-time {
    display: none;
  }

  .pmp-bar-body--tier1 .pmp-btn--shuffle,
  .pmp-bar-body--tier1 .pmp-btn--repeat,
  .pmp-right { display: none; }

  .pmp-root[data-mode="bar"] {
    height: auto;
    min-height: 72px;
    --pmp-bar-h: 72px;
  }

  body.has-pmp-bar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .pmp-bar-left .pmp-cover {
    width: 48px;
    height: 48px;
  }

  .pmp-volume { display: none; }
}
